Added NotificationA PI
This commit is contained in:
parent
196b1e3be2
commit
8f51be0a8e
@ -73,7 +73,7 @@
|
||||
tooltipPosition="below"
|
||||
></iqser-circle-button>
|
||||
|
||||
<redaction-notifications *ngIf="userPreferenceService.areDevFeaturesEnabled"></redaction-notifications>
|
||||
<redaction-notifications></redaction-notifications>
|
||||
</div>
|
||||
<redaction-user-button
|
||||
[matMenuTriggerFor]="userMenu"
|
||||
|
||||
@ -9,6 +9,22 @@ interface Notification {
|
||||
read: boolean;
|
||||
}
|
||||
|
||||
// Current Notification Types:
|
||||
// ASSIGN_REVIEWER,
|
||||
// ASSIGN_APPROVER,
|
||||
// UNASSIGNED_FROM_FILE,
|
||||
// DOCUMENT_APPROVED,
|
||||
// DOSSIER_OWNER_SET,
|
||||
// DOSSIER_OWNER_REMOVED,
|
||||
// USER_BECOMES_DOSSIER_MEMBER,
|
||||
// USER_REMOVED_AS_DOSSIER_MEMBER,
|
||||
// USER_PROMOTED_TO_APPROVER,
|
||||
// USER_DEGRADED_TO_REVIEWER,
|
||||
// DOSSIER_OWNER_DELETED
|
||||
// For each you have a different set of target Ids - I.E. a projectId, fileId or userId of the user who did the action
|
||||
// we need to create some templated i18n message which also include links
|
||||
// to the file or project that was affected ( see mock notifications )
|
||||
|
||||
@Component({
|
||||
selector: 'redaction-notifications',
|
||||
templateUrl: './notifications.component.html',
|
||||
@ -30,6 +46,11 @@ export class NotificationsComponent {
|
||||
|
||||
constructor(private _translateService: TranslateService, private _notificationControllerService: NotificationControllerService) {
|
||||
this._groupNotifications();
|
||||
// TODO group notifications by date using same date-format as comments in workload
|
||||
//
|
||||
this._notificationControllerService.getNotifications(false).subscribe(response => {
|
||||
console.log(response);
|
||||
});
|
||||
}
|
||||
|
||||
get hasUnread() {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"OAUTH_URL": "https://dev-06.iqser.cloud/auth/realms/redaction",
|
||||
"API_URL": "https://dev-06.iqser.cloud/redaction-gateway-v1",
|
||||
"OAUTH_URL": "https://red-staging.iqser.cloud/auth/realms/redaction",
|
||||
"API_URL": "https://red-staging.iqser.cloud/redaction-gateway-v1",
|
||||
"OAUTH_CLIENT_ID": "redaction",
|
||||
"BACKEND_APP_VERSION": "4.4.40",
|
||||
"FRONTEND_APP_VERSION": "1.1",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user