From 40228c0c2b17c800fa5e227b4d2e8d074da82075 Mon Sep 17 00:00:00 2001 From: noveens Date: Wed, 15 Feb 2017 01:56:00 +0530 Subject: added quit option in commentstabview.js added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke --- apps/files/js/files.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'apps/files/js/files.js') 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'} + ); } }, -- cgit v1.2.3