summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-02-12 14:14:14 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-02-12 19:27:26 +0000
commit535b60bfedf8d4ef1e64914864bea86b4355c4f9 (patch)
treeec670ca84a610bf0444aa1a6513df9ae24eae946
parent6954d3a50c4f0e72eb6f0521afbc10c575ac6ee3 (diff)
downloadnextcloud-server-535b60bfedf8d4ef1e64914864bea86b4355c4f9.tar.gz
nextcloud-server-535b60bfedf8d4ef1e64914864bea86b4355c4f9.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 17073b47033..bdf1df90e45 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);
});