#1393: option to disable saving and exporting (canSaveTo)

This commit is contained in:
antelle 2020-03-14 20:51:42 +01:00
parent 3d9965c4af
commit 19e899ba97
4 changed files with 7 additions and 2 deletions

View File

@ -73,6 +73,7 @@ AppSettingsModel.defineModelProperties(
canRemoveLatest: true,
canExportXml: true,
canExportHtml: true,
canSaveTo: true,
dropbox: true,
webdav: true,

View File

@ -112,6 +112,7 @@ class SettingsFileView extends View {
kdfParameters: this.kdfParametersToUi(this.model.kdfParameters),
storageProviders,
canBackup,
canSaveTo: AppSettingsModel.canSaveTo,
canExportXml: AppSettingsModel.canExportXml,
canExportHtml: AppSettingsModel.canExportHtml
});

View File

@ -15,8 +15,10 @@
{{#ifeq storage 'file'}}{{res 'setFileSave'}}{{/ifeq}}
{{#ifneq storage 'file'}}{{res 'setFileSyncVerb'}}{{/ifneq}}
</button>
<button class="settings__file-button-save-choose btn-silent"
{{#if syncing}}disabled{{/if}}>{{res 'setFileSaveTo'}}</button>
{{#if canSaveTo}}
<button class="settings__file-button-save-choose btn-silent"
{{#if syncing}}disabled{{/if}}>{{res 'setFileSaveTo'}}</button>
{{/if}}
<button class="settings__file-button-close btn-silent">{{res 'setFileClose'}}</button>
</div>

View File

@ -4,6 +4,7 @@ Release notes
`+` #1341: auto-lock the app on screen lock on Windows
`+` #1065: PORTABLE_EXECUTABLE_DIR environment variable
`*` #1397: Segoe UI font on Windows
`+` #1393: option to disable saving and exporting (canSaveTo)
`-` fix #1396: fixed hyperlinks in notes
`-` fix #1323: version in the About dialog
`-` fix #734: OTP secrets with spaces