Close dialog if response has notifications

This commit is contained in:
Erik-Jan Westendorp
2021-09-01 15:34:15 +02:00
parent 5708203950
commit 36ba30fcbd

View File

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