diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-13 10:05:53 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-13 10:05:53 +0200 |
commit | b811124aac3cf308b5c011d4c32554d145fe4d10 (patch) | |
tree | 96d69eabca2e4f53d1177342858882aa5d0d62b1 /apps/files/js/files.js | |
parent | 970440f604f262df69bce904ea68b349649fa071 (diff) | |
parent | e6bf4e559ace94d625b8c73f5c06a9293f76bf4d (diff) | |
download | nextcloud-server-b811124aac3cf308b5c011d4c32554d145fe4d10.tar.gz nextcloud-server-b811124aac3cf308b5c011d4c32554d145fe4d10.zip |
Merge pull request #18231 from owncloud/fix-show-shared-storage-full-temporary
Show storage full warning for shared storages temporary
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index f1de717c7d5..55fdb96ebda 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -116,7 +116,7 @@ ownerDisplayName = $('#ownerDisplayName').val(); if (usedSpacePercent > 98) { if (owner !== oc_current_user) { - OC.Notification.show(t('files', 'Storage of {owner} is full, files can not be updated or synced anymore!', + OC.Notification.showTemporary(t('files', 'Storage of {owner} is full, files can not be updated or synced anymore!', { owner: ownerDisplayName })); return; } @@ -125,7 +125,7 @@ } if (usedSpacePercent > 90) { if (owner !== oc_current_user) { - OC.Notification.show(t('files', 'Storage of {owner} is almost full ({usedSpacePercent}%)', + OC.Notification.showTemporary(t('files', 'Storage of {owner} is almost full ({usedSpacePercent}%)', { usedSpacePercent: usedSpacePercent, owner: ownerDisplayName })); return; } @@ -234,7 +234,6 @@ // display storage warnings setTimeout(Files.displayStorageWarnings, 100); - OC.Notification.setDefault(Files.displayStorageWarnings); // only possible at the moment if user is logged in or the files app is loaded if (OC.currentUser && OCA.Files.App) { |