feat(notifications): add notification for API signup
This notification is show when the signup request was send and the API is pending approval.
Closes:
MODIFY
src/app/components/notifications/notifications.component.html
src/app/components/notifications/notifications.component.html
{{ 'NOTIFICATION.COLUMN_TITLE.MESSAGE' | translate }}
</th>
<td mat-cell *matCellDef="let notification">
- <span class="notifications-message" (click)="redirect(notification)">{{
- mapNotificationMessage(notification)
- }}</span>
+ <span
+ class="notifications-message"
+ (click)="redirect(notification)"
+ [innerHTML]="mapNotificationMessage(notification)"></span>
</td>
</ng-container>
<ng-container matColumnDef="date">

MODIFY
src/app/components/notifications/notifications.component.ts
src/app/components/notifications/notifications.component.ts
@@ -99,6 +99,10 @@ export class NotificationsComponent implements OnInit {
[
'apiman.client.status_change.registered',
'NOTIFICATION.MESSAGE.CLIENT.REGISTERED'
+ ],
+ [
+ 'apiman.client.contract.request.user',
+ 'NOTIFICATION.MESSAGE.API.SIGN_UP_REQUESTED'
]
]);

MODIFY
src/assets/i18n/en.json
src/assets/i18n/en.json
"TERMS_ERROR": "Please accept the service terms",
"REDIRECT": "You will be redirected because of missing data",
"SUCCESS": "A contract has been successfully created",
- "API_KEY_PREVIEW": "You will be provided an API key after sign-up",
- "API_ENDPOINT_PREVIEW": "You will be provided an endpoint after sign-up",
+ "API_KEY_PREVIEW": "You will be provided an API key after signup",
+ "API_ENDPOINT_PREVIEW": "You will be provided an endpoint after signup",
"LICENSE_TYPE": "Licence Type",
"POLICIES": "Policies",
"CONTRACT_EXISTS": "There is already an contract for this API with the selected client"
},
"MESSAGE": {
"API": {
- "SIGN_UP_APPROVED": "Your API Sign-Up for {{ payload.apiId }} in your client {{ payload.clientId }} has been approved.",
- "SIGN_UP_REJECTED": "Your API Sign-Up for {{ payload.apiId }} in your client {{ payload.clientId }} has been rejected."
+ "SIGN_UP_APPROVED": "Your API signup for <code>{{ payload.apiId }}</code> in your client <code>{{ payload.clientId }}</code> has been approved.",
+ "SIGN_UP_REJECTED": "Your API signup for <code>{{ payload.apiId }}</code> in your client <code>{{ payload.clientId }}</code> has been rejected.",
+ "SIGN_UP_REQUESTED": "Your API signup for <code>{{ payload.apiId }}</code> in your client <code>{{ payload.clientId }}</code> is pending approval."
},
"CLIENT": {
- "REGISTERED": "Your Client {{payload.clientId}} has been registered."
+ "REGISTERED": "Your client <code>{{payload.clientId}}</code> has been registered."
}
},
"STATUS": {

feat(notifications): add notification for API signup

This notification is show when the signup request was send and the API is pending approval.

Closes: PAS-4355