Merge pull request #11009 from erikjanwestendorp/close-content-delete-dialog-on-error

Close delete dialog if response has notifications
This commit is contained in:
Nikolaj Geisle
2021-09-07 09:38:32 +02:00
committed by GitHub

View File

@@ -67,6 +67,11 @@ function ContentDeleteController($scope, $timeout, contentResource, treeService,
if (err.status && err.status >= 500) {
// TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(err);
navigationService.hideDialog();
}
if(err.data && err.data.notifications && err.data.notifications.length > 0) {
navigationService.hideDialog();
}
});