removed not needed logs

This commit is contained in:
Valentin 2021-08-16 14:00:05 +03:00
parent c98c9b711b
commit 27f6d69c30
2 changed files with 4 additions and 9 deletions

View File

@ -37,8 +37,6 @@ export class NotificationsComponent {
) { ) {
this._notificationControllerService.getNotifications(false).subscribe((response: NotificationResponse) => { this._notificationControllerService.getNotifications(false).subscribe((response: NotificationResponse) => {
this.notifications = response.notifications; this.notifications = response.notifications;
console.log(this.notifications);
console.log(JSON.stringify(this.notifications));
this._groupNotifications(this.notifications); this._groupNotifications(this.notifications);
}); });
} }
@ -62,14 +60,11 @@ export class NotificationsComponent {
} }
toggleRead(notification: Notification, $event) { toggleRead(notification: Notification, $event) {
console.log('notification: ', notification);
$event.stopPropagation(); $event.stopPropagation();
notification.readDate = !notification.readDate ? moment().format('YYYY-MM-DDTHH:mm:ss Z') : null; notification.readDate = !notification.readDate ? moment().format('YYYY-MM-DDTHH:mm:ss Z') : null;
const ids = [notification.notificationId]; const ids = [notification.notificationId];
const isRead = !!notification.readDate; const isRead = !!notification.readDate;
this._notificationControllerService.toggleNotificationRead(ids, isRead).subscribe(response => { this._notificationControllerService.toggleNotificationRead(ids, isRead);
console.log('response: ', response);
});
} }
private _getDossierHref(dossierId: string) { private _getDossierHref(dossierId: string) {

View File

@ -1169,9 +1169,9 @@
"sep": "Sep." "sep": "Sep."
}, },
"notification": { "notification": {
"assign-approver": "You have been assigned as approver for <b><a href=\"{fileHref}\" target=\"_blank\">file</a><b> in the <b><a href=\"{dossierHref}\" target=\"_blank\">dossier</a><b>!", "assign-approver": "You have been assigned as approver for <b><a href=\"{fileHref}\" target=\"_blank\">file</a></b> in the <b><a href=\"{dossierHref}\" target=\"_blank\">dossier</a><b>!",
"assign-reviewer": "You have been assigned as reviewer for <b><a href=\"{fileHref}\" target=\"_blank\">file</a><b> in the <b><a href=\"{dossierHref}\" target=\"_blank\">dossier</a><b>!", "assign-reviewer": "You have been assigned as reviewer for <b><a href=\"{fileHref}\" target=\"_blank\">file</a></b> in the <b><a href=\"{dossierHref}\" target=\"_blank\">dossier</a><b>!",
"unassigned-from-file": "You have been unassigned from <b><a href=\"{fileHref}\" target=\"_blank\">file</a><b> in the <b><a href=\"{dossierHref}\" target=\"_blank\">dossier</a><b>!" "unassigned-from-file": "You have been unassigned from <b><a href=\"{fileHref}\" target=\"_blank\">file</a></b> in the <b><a href=\"{dossierHref}\" target=\"_blank\">dossier</a><b>!"
}, },
"notifications": { "notifications": {
"mark-read": "Mark as read", "mark-read": "Mark as read",