canOpenWebdav is now canOpenStorage

This commit is contained in:
antelle 2020-04-17 20:58:47 +02:00
parent eca5b1c7a0
commit 833aa3c748
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
3 changed files with 9 additions and 9 deletions

View File

@ -75,7 +75,7 @@ AppSettingsModel.defineModelProperties(
canExportXml: true,
canExportHtml: true,
canSaveTo: true,
canOpenWebdav: true,
canOpenStorage: true,
canOpenGenerator: true,
dropbox: true,

View File

@ -80,15 +80,14 @@ class OpenView extends View {
clearTimeout(this.dragTimeout);
}
const storageProviders = [];
Object.keys(Storage).forEach(name => {
const prv = Storage[name];
if (!prv.system && prv.enabled) {
if (name === 'webdav' && !this.model.settings.canOpenWebdav) {
return;
if (this.model.settings.canOpenStorage) {
Object.keys(Storage).forEach(name => {
const prv = Storage[name];
if (!prv.system && prv.enabled) {
storageProviders.push(prv);
}
storageProviders.push(prv);
}
});
});
}
storageProviders.sort((x, y) => (x.uipos || Infinity) - (y.uipos || Infinity));
const showMore =
storageProviders.length ||

View File

@ -3,6 +3,7 @@ Release notes
##### v1.14.0 (TBD)
`+` using OAuth authorization code grant for all storage providers
`-` fixed a number of vulnerabilities in opening untrusted kdbx files
`*` canOpenWebdav is now canOpenStorage
##### v1.13.4 (2020-04-15)
`-` fix #1457: fixed styles in theme plugins