mirror of https://github.com/keeweb/keeweb.git
#1456: options to hide webdav and password generator
This commit is contained in:
parent
70642b464e
commit
da91254cf0
|
@ -75,6 +75,8 @@ AppSettingsModel.defineModelProperties(
|
|||
canExportXml: true,
|
||||
canExportHtml: true,
|
||||
canSaveTo: true,
|
||||
canOpenWebdav: true,
|
||||
canOpenGenerator: true,
|
||||
|
||||
dropbox: true,
|
||||
webdav: true,
|
||||
|
|
|
@ -83,11 +83,17 @@ class OpenView extends View {
|
|||
Object.keys(Storage).forEach(name => {
|
||||
const prv = Storage[name];
|
||||
if (!prv.system && prv.enabled) {
|
||||
if (name === 'webdav' && !this.model.settings.canOpenWebdav) {
|
||||
return;
|
||||
}
|
||||
storageProviders.push(prv);
|
||||
}
|
||||
});
|
||||
storageProviders.sort((x, y) => (x.uipos || Infinity) - (y.uipos || Infinity));
|
||||
const showMore = storageProviders.length || this.model.settings.canOpenSettings;
|
||||
const showMore =
|
||||
storageProviders.length ||
|
||||
this.model.settings.canOpenSettings ||
|
||||
this.model.settings.canOpenGenerator;
|
||||
const showLogo =
|
||||
!showMore &&
|
||||
!this.model.settings.canOpen &&
|
||||
|
@ -101,6 +107,7 @@ class OpenView extends View {
|
|||
canOpen: this.model.settings.canOpen,
|
||||
canOpenDemo: this.model.settings.canOpenDemo,
|
||||
canOpenSettings: this.model.settings.canOpenSettings,
|
||||
canOpenGenerator: this.model.settings.canOpenGenerator,
|
||||
canCreate: this.model.settings.canCreate,
|
||||
canRemoveLatest: this.model.settings.canRemoveLatest,
|
||||
showMore,
|
||||
|
|
|
@ -51,10 +51,12 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<div class="open__icon open__icon-generate" tabindex="12" id="open__icon-generate">
|
||||
<i class="fa fa-bolt open__icon-i"></i>
|
||||
<div class="open__icon-text">{{res 'openGenerate'}}</div>
|
||||
</div>
|
||||
{{#if canOpenGenerator}}
|
||||
<div class="open__icon open__icon-generate" tabindex="12" id="open__icon-generate">
|
||||
<i class="fa fa-bolt open__icon-i"></i>
|
||||
<div class="open__icon-text">{{res 'openGenerate'}}</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if canOpenSettings}}
|
||||
<div class="open__icon open__icon-settings" tabindex="12" id="open__icon-settings">
|
||||
<i class="fa fa-cog open__icon-i"></i>
|
||||
|
|
|
@ -2,6 +2,7 @@ Release notes
|
|||
-------------
|
||||
##### v1.13.4 (2020-04-15)
|
||||
`-` fix #1457: fixed styles in theme plugins
|
||||
`+` #1456: options to hide webdav and password generator
|
||||
|
||||
##### v1.13.3 (2020-04-11)
|
||||
`-` fix #1451: fixed slow global auto-type on desktop
|
||||
|
|
Loading…
Reference in New Issue