mirror of https://github.com/keeweb/keeweb.git
fix message about not found files
This commit is contained in:
parent
ab07be1080
commit
df3d3a7209
|
@ -118,7 +118,8 @@ var Locale = {
|
||||||
openDropHere: 'drop files here',
|
openDropHere: 'drop files here',
|
||||||
openFailedRead: 'Failed to read file',
|
openFailedRead: 'Failed to read file',
|
||||||
openNothingFound: 'Nothing found',
|
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',
|
openAppFolder: 'app',
|
||||||
openRootFolder: 'root',
|
openRootFolder: 'root',
|
||||||
openSelectFile: 'Select a file',
|
openSelectFile: 'Select a file',
|
||||||
|
|
|
@ -535,9 +535,13 @@ var OpenView = Backbone.View.extend({
|
||||||
allStorageFiles[file.path] = file;
|
allStorageFiles[file.path] = file;
|
||||||
});
|
});
|
||||||
if (!buttons.length) {
|
if (!buttons.length) {
|
||||||
|
var body = Locale.openNothingFoundBody;
|
||||||
|
if (dir) {
|
||||||
|
body += ' ' + Locale.openNothingFoundBodyFolder.replace('{}', dir);
|
||||||
|
}
|
||||||
Alerts.error({
|
Alerts.error({
|
||||||
header: Locale.openNothingFound,
|
header: Locale.openNothingFound,
|
||||||
body: Locale.openNothingFoundBody.replace('{}', dir)
|
body: body
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,8 @@ Release notes
|
||||||
##### v1.1.2 (2016-04-*)
|
##### v1.1.2 (2016-04-*)
|
||||||
Hotfix
|
Hotfix
|
||||||
`-` fix notes field text color
|
`-` 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)
|
##### v1.1.1 (2016-04-07)
|
||||||
Hotfix
|
Hotfix
|
||||||
|
|
Loading…
Reference in New Issue