From af4139ce64fe620327d856c36c79cb7d82f8cdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 12 Feb 2020 14:14:14 +0100 Subject: [PATCH] Show proper file name when fetching details fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/filelist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 01624975c1..38b8dc5492 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); });