1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-20 06:56:40 +02:00

dropbox open bugfix

This commit is contained in:
Antelle 2015-10-25 20:21:25 +03:00
parent e3ccb1ee12
commit 417cfc73ee

View File

@ -190,7 +190,16 @@ var OpenFileView = Backbone.View.extend({
files.forEach(function(file) {
buttons.push({ result: file, title: file.replace(/\.kdbx/i, '') });
});
buttons.push({ result: '', title: 'cancel' });
if (!buttons.length) {
this.dropboxLoading = null;
this.render();
Alerts.error({
header: 'Nothing found',
body: 'You have no files in your Dropbox which could opened. Files are searched in your Dropbox app folder: Apps/KeeWeb'
});
return;
}
buttons.push({ result: '', title: 'Cancel' });
Alerts.alert({
header: 'Select a file',
body: 'Select a file from your Dropbox which you would like to open',