mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Do not show general warning on free space error
Fixes #12588 Probably needs more fixing for the other cases. But this is the quick fix I could come up with for now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
1f94126f59
commit
d500c4babf
1 changed files with 1 additions and 1 deletions
|
|
@ -1024,7 +1024,7 @@ OC.Uploader.prototype = _.extend({
|
|||
// target folder does not exist any more
|
||||
OC.Notification.show(t('files', 'Target folder "{dir}" does not exist any more', {dir: upload.getFullPath()} ), {type: 'error'});
|
||||
self.cancelUploads();
|
||||
} else if (status === 507) {
|
||||
} else if (data.textStatus === 'notenoughspace') {
|
||||
// not enough space
|
||||
OC.Notification.show(t('files', 'Not enough free space'), {type: 'error'});
|
||||
self.cancelUploads();
|
||||
|
|
|
|||
Loading…
Reference in a new issue