Fix notification message while change the status of an element and its content

This commit is contained in:
Konstantinos Triantafyllou 2022-10-25 18:42:24 +03:00
parent 191855d64d
commit a8ab4c2e58
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit f1618b92e8739b4845955c9c4f02a2e1fc31242a
Subproject commit 56a8a035cc5df422fc5fa442694bdc87894cdd26

View File

@ -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 <b>successfully changed</b> to ' + returnedElement.visibility.toLowerCase());
} else {
element.visibility = returnedElement.visibility;
NotificationHandler.rise(StringUtils.capitalize(this.type) + ' has been <b>successfully changed</b> to ' + element.visibility.toLowerCase());
}
NotificationHandler.rise(StringUtils.capitalize(this.type) + ' has been <b>successfully changed</b> to ' + element.visibility.toLowerCase());
}, error => {
NotificationHandler.rise(error.error.message, 'danger');
}));

@ -1 +1 @@
Subproject commit 936fac297322fa252af930cab3c0e69efe57c1a5
Subproject commit fc2e0b805ae3011f0f181983b27905908e528083