From 3a32288d1a4053e3bf561766c35cf27d5a938b38 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Fri, 11 Oct 2019 11:21:34 +0800 Subject: feat: extract the notification bar of the onboard page Change-Id: I4fcc0a1a5d4372d8b95127e2baa125e95d2c006d Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- .../shared/components/notification/notification.component.html | 9 +++++---- .../app/shared/components/notification/notification.component.ts | 8 +++++++- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'usecaseui-portal/src/app/shared/components/notification') diff --git a/usecaseui-portal/src/app/shared/components/notification/notification.component.html b/usecaseui-portal/src/app/shared/components/notification/notification.component.html index 97f66ba5..acf6f62a 100644 --- a/usecaseui-portal/src/app/shared/components/notification/notification.component.html +++ b/usecaseui-portal/src/app/shared/components/notification/notification.component.html @@ -2,15 +2,16 @@
- {{notificationAttributes.status}} + {{notificationAttributes.status}} -
- {{"i18nTextDefine_"+notificationAttributes.title | translate}}  +
+ {{(notificationAttributes.action === 'OnboardingState'? notificationAttributes.title : "i18nTextDefine_"+notificationAttributes.title) | translate}}  {{"i18nTextDefine_"+notificationAttributes.action | translate}}  {{"i18nTextDefine_"+notificationAttributes.status | translate}}
-

{{"i18nTextDefine_"+notificationAttributes.title | translate}}:

+

{{"i18nTextDefine_"+notificationAttributes.title | translate}}:

+

{{notificationAttributes.title}} id: 

{{ notificationAttributes.name }}
diff --git a/usecaseui-portal/src/app/shared/components/notification/notification.component.ts b/usecaseui-portal/src/app/shared/components/notification/notification.component.ts index 031b161d..00ccf90b 100644 --- a/usecaseui-portal/src/app/shared/components/notification/notification.component.ts +++ b/usecaseui-portal/src/app/shared/components/notification/notification.component.ts @@ -9,7 +9,13 @@ import { NzNotificationService } from 'ng-zorro-antd'; export class NotificationComponent implements OnInit { @ViewChild('notificationModel')notificationModel: any; - notificationAttributes: object = null; + notificationAttributes: { + title: string, + imgPath: string, + action: string, + status: string, + name: string + }; constructor(private notification: NzNotificationService) { } -- cgit 1.2.3-korg