webdav save message

This commit is contained in:
antelle 2016-03-27 21:39:16 +03:00
parent 3cb3ec471f
commit 9bc441b3bf
2 changed files with 12 additions and 1 deletions

View File

@ -313,6 +313,8 @@ var Locale = {
setFileUnsavedBody: 'There are unsaved changes in this file',
setFileCloseNoSave: 'Close and lose changes',
setFileDontClose: 'Don\'t close',
setFileNoWebDavUpload: 'Cannot save to WebDAV',
setFileNoWebDavUploadBody: 'Saving files to WebDAV is currently not supported. Please, upload your file manually and open in the app.',
setShTitle: 'Shortcuts',
setShShowAll: 'show all items',

View File

@ -202,7 +202,16 @@ var SettingsFileView = Backbone.View.extend({
that.save();
} else {
if (!storage.list) {
return Alerts.notImplemented();
if (storage.name === 'webdav') {
Alerts.info({
icon: storage.icon,
header: Locale.setFileNoWebDavUpload,
body: Locale.setFileNoWebDavUploadBody
});
} else {
Alerts.notImplemented();
}
return;
}
that.model.set('syncing', true);
storage.list(function(err, files) {