From df3d3a7209350b9dae27dd4b72105d65272046b2 Mon Sep 17 00:00:00 2001 From: antelle Date: Sun, 10 Apr 2016 09:44:17 +0300 Subject: [PATCH] fix message about not found files --- app/scripts/util/locale.js | 3 ++- app/scripts/views/open-view.js | 6 +++++- release-notes.md | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/scripts/util/locale.js b/app/scripts/util/locale.js index b6bfa17d..2b63f1d9 100644 --- a/app/scripts/util/locale.js +++ b/app/scripts/util/locale.js @@ -118,7 +118,8 @@ var Locale = { openDropHere: 'drop files here', openFailedRead: 'Failed to read file', openNothingFound: 'Nothing found', - openNothingFoundBody: 'No files which could be opened (files are searched inside {} folder).', + openNothingFoundBody: 'No files which could be opened.', + openNothingFoundBodyFolder: 'Files are searched inside {} folder', openAppFolder: 'app', openRootFolder: 'root', openSelectFile: 'Select a file', diff --git a/app/scripts/views/open-view.js b/app/scripts/views/open-view.js index ed55b718..73bf6ca1 100644 --- a/app/scripts/views/open-view.js +++ b/app/scripts/views/open-view.js @@ -535,9 +535,13 @@ var OpenView = Backbone.View.extend({ allStorageFiles[file.path] = file; }); if (!buttons.length) { + var body = Locale.openNothingFoundBody; + if (dir) { + body += ' ' + Locale.openNothingFoundBodyFolder.replace('{}', dir); + } Alerts.error({ header: Locale.openNothingFound, - body: Locale.openNothingFoundBody.replace('{}', dir) + body: body }); return; } diff --git a/release-notes.md b/release-notes.md index e3056a3d..96ea5324 100644 --- a/release-notes.md +++ b/release-notes.md @@ -4,7 +4,8 @@ Release notes ##### v1.1.2 (2016-04-*) Hotfix `-` fix notes field text color -`-` fixed some console assertions +`-` fix some console assertions +`-` fix message about not found files ##### v1.1.1 (2016-04-07) Hotfix