aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-12 14:14:43 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-12 14:14:43 +0200
commite6bf4e559ace94d625b8c73f5c06a9293f76bf4d (patch)
treef11c80b8c178f4390c30c50974f8503a46af4f9b /apps/files/js/files.js
parent326de6f9b4473f68e4c0237f0b6fb43111cda0c5 (diff)
downloadnextcloud-server-e6bf4e559ace94d625b8c73f5c06a9293f76bf4d.tar.gz
nextcloud-server-e6bf4e559ace94d625b8c73f5c06a9293f76bf4d.zip
Show strage full warning for shared storages temporary
* removed the setDefault call because then it will always be reshown * was added with ba475d486258c0b7ea86cd766814053df6c69170 * fixes #18208
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 19cc3b26e44..7bfb525ba93 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) {