From a8ab4c2e586143018c978db6e3b49de4038dbd00 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 25 Oct 2022 18:42:24 +0300 Subject: [PATCH] Fix notification message while change the status of an element and its content --- src/app/openaireLibrary | 2 +- src/app/topic/topic.component.ts | 3 ++- src/assets/common-assets | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index f1618b9..56a8a03 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit f1618b92e8739b4845955c9c4f02a2e1fc31242a +Subproject commit 56a8a035cc5df422fc5fa442694bdc87894cdd26 diff --git a/src/app/topic/topic.component.ts b/src/app/topic/topic.component.ts index b932d1a..102ccd9 100644 --- a/src/app/topic/topic.component.ts +++ b/src/app/topic/topic.component.ts @@ -695,10 +695,11 @@ export class TopicComponent implements OnInit, OnDestroy, IDeactivateComponent { this.topicSubscriptions.push(this.stakeholderService.changeVisibility(this.properties.monitorServiceAPIURL, path, visibility, propagate).subscribe(returnedElement => { if(propagate) { callback(returnedElement); + NotificationHandler.rise(StringUtils.capitalize(this.type) + ' has been successfully changed to ' + returnedElement.visibility.toLowerCase()); } else { element.visibility = returnedElement.visibility; + NotificationHandler.rise(StringUtils.capitalize(this.type) + ' has been successfully changed to ' + element.visibility.toLowerCase()); } - NotificationHandler.rise(StringUtils.capitalize(this.type) + ' has been successfully changed to ' + element.visibility.toLowerCase()); }, error => { NotificationHandler.rise(error.error.message, 'danger'); })); diff --git a/src/assets/common-assets b/src/assets/common-assets index 936fac2..fc2e0b8 160000 --- a/src/assets/common-assets +++ b/src/assets/common-assets @@ -1 +1 @@ -Subproject commit 936fac297322fa252af930cab3c0e69efe57c1a5 +Subproject commit fc2e0b805ae3011f0f181983b27905908e528083