fix message about not found files

This commit is contained in:
antelle 2016-04-10 09:44:17 +03:00
parent ab07be1080
commit df3d3a7209
3 changed files with 9 additions and 3 deletions

View File

@ -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',

View File

@ -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;
}

View File

@ -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