aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-03-23 15:56:18 -0600
committerGitHub <noreply@github.com>2017-03-23 15:56:18 -0600
commit71c80433c2921d13c4dc35f5dad7fba2efe00ba5 (patch)
tree57566c63b2b27c2d20ed8c69a028933f64e3028c /apps/files/js/files.js
parenta5a29ee27a8e93d83f8916f4f0a7857c880e1156 (diff)
parent40228c0c2b17c800fa5e227b4d2e8d074da82075 (diff)
downloadnextcloud-server-71c80433c2921d13c4dc35f5dad7fba2efe00ba5.tar.gz
nextcloud-server-71c80433c2921d13c4dc35f5dad7fba2efe00ba5.zip
Merge pull request #4007 from nextcloud/backport-27155
Change showTemporary notifications for closable ones
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js25
1 files changed, 19 insertions, 6 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 5b345a45b67..a30194013e5 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -117,21 +117,34 @@
ownerDisplayName = $('#ownerDisplayName').val();
if (usedSpacePercent > 98) {
if (owner !== oc_current_user) {
- OC.Notification.showTemporary(t('files', 'Storage of {owner} is full, files can not be updated or synced anymore!',
- { owner: ownerDisplayName }));
+ OC.Notification.show(t('files', 'Storage of {owner} is full, files can not be updated or synced anymore!',
+ {owner: ownerDisplayName}), {type: 'error'}
+ );
return;
}
- OC.Notification.show(t('files', 'Your storage is full, files can not be updated or synced anymore!'));
+ OC.Notification.show(t('files',
+ 'Your storage is full, files can not be updated or synced anymore!'),
+ {type : 'error'}
+ );
return;
}
if (usedSpacePercent > 90) {
if (owner !== oc_current_user) {
- OC.Notification.showTemporary(t('files', 'Storage of {owner} is almost full ({usedSpacePercent}%)',
- { usedSpacePercent: usedSpacePercent, owner: ownerDisplayName }));
+ OC.Notification.show(t('files', 'Storage of {owner} is almost full ({usedSpacePercent}%)',
+ {
+ usedSpacePercent: usedSpacePercent,
+ owner: ownerDisplayName
+ }),
+ {
+ type: 'error'
+ }
+ );
return;
}
OC.Notification.show(t('files', 'Your storage is almost full ({usedSpacePercent}%)',
- {usedSpacePercent: usedSpacePercent}));
+ {usedSpacePercent: usedSpacePercent}),
+ {type : 'error'}
+ );
}
},