aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-02-12 14:14:14 +0100
committerJulius Härtl <jus@bitgrid.net>2020-02-12 14:14:14 +0100
commitaf4139ce64fe620327d856c36c79cb7d82f8cdc2 (patch)
treee1c1e570d0c95ce84980219a77f73eb3cd00fa7e
parentcc38f28391139c30b476756e632cbab3d2930324 (diff)
downloadnextcloud-server-af4139ce64fe620327d856c36c79cb7d82f8cdc2.tar.gz
nextcloud-server-af4139ce64fe620327d856c36c79cb7d82f8cdc2.zip
Show proper file name when fetching details fails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 01624975c1a..38b8dc54923 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2949,8 +2949,8 @@
deferred.resolve(status, data);
})
.fail(function(status) {
- OC.Notification.show(t('files', 'Could not create file "{file}"',
- {file: name}), {type: 'error'}
+ OCP.Toast.error(
+ t('files', 'Could not fetch file details "{file}"', { file: fileName })
);
deferred.reject(status);
});