Hide notification on delete

In case a permanent notification "storage full" was displayed, it will
be hidden after deleting a file.

Directly after that a getstoragestats.php call is made that will decide
whether to reshow the notification based on the new free space.
This commit is contained in:
Vincent Petry 2015-10-13 17:24:52 +02:00
parent 3891cd9068
commit cdc1386885
1 changed files with 2 additions and 0 deletions

View File

@ -2011,6 +2011,8 @@
self.fileSummary.update();
self.updateSelectionSummary();
self.updateStorageStatistics();
// in case there was a "storage full" permanent notification
OC.Notification.hide();
} else {
if (result.status === 'error' && result.data.message) {
OC.Notification.show(result.data.message);