From 5bdc5c68c3e7ebc24a7a5ca1e379c1e4ecead2fd Mon Sep 17 00:00:00 2001 From: cyuamber Date: Fri, 6 Dec 2019 21:34:38 +0800 Subject: feat: Added tooltip for failed requests Change-Id: Iab417a0f2c641cde56c06abef6010d5a813f2935 Issue-ID: USECASEUI-368 Signed-off-by: cyuamber --- .../components/notification/notification.component.html | 16 +++++++++++++++- .../components/notification/notification.component.ts | 4 ++-- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'usecaseui-portal/src/app/shared') 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 f20fd48c..0a40da9a 100644 --- a/usecaseui-portal/src/app/shared/components/notification/notification.component.html +++ b/usecaseui-portal/src/app/shared/components/notification/notification.component.html @@ -5,7 +5,7 @@ {{notificationAttributes.status}} -
+
{{(notificationAttributes.action === 'OnboardingState'? notificationAttributes.title : "i18nTextDefine_"+notificationAttributes.title) | translate}}  {{"i18nTextDefine_"+notificationAttributes.action | translate}}  {{"i18nTextDefine_"+notificationAttributes.status | translate}} @@ -45,6 +45,20 @@
{{"i18nTextDefine_Close" | translate}}
+ +
+
+ {{ notificationAttributes.title}}  + {{ notificationAttributes.action }}  {{notificationAttributes.status}} +
+
+
+

{{notificationAttributes.title}} id: 

+ {{ notificationAttributes.name }} +
+
+
{{"i18nTextDefine_Close" | translate}}
+
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 de0df083..18f91b35 100644 --- a/usecaseui-portal/src/app/shared/components/notification/notification.component.ts +++ b/usecaseui-portal/src/app/shared/components/notification/notification.component.ts @@ -9,6 +9,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; export class NotificationComponent implements OnInit { @ViewChild('notificationModel')notificationModel: any; @Input()isServicesList: boolean; + @Input()parentComponent: string; @Input()customerSelected: object; notificationAttributes: { @@ -21,8 +22,7 @@ export class NotificationComponent implements OnInit { constructor(private notification: NzNotificationService) { } - ngOnInit() { - } + ngOnInit() { } setNotification({ title, imgPath, action, status, name }):void{ this.notificationAttributes = { title, imgPath, action, status, name }; -- cgit 1.2.3-korg