mirror of https://github.com/keeweb/keeweb.git
fix #1241: config option to disable xml export (canExportXml)
This commit is contained in:
parent
58709c33a0
commit
ba122bd9d0
|
@ -42,6 +42,7 @@ const AppSettingsModel = Backbone.Model.extend({
|
|||
canCreate: true,
|
||||
canImportXml: true,
|
||||
canRemoveLatest: true,
|
||||
canExportXml: true,
|
||||
|
||||
dropbox: true,
|
||||
webdav: true,
|
||||
|
|
|
@ -10,6 +10,7 @@ const Format = require('../../util/format');
|
|||
const Locale = require('../../util/locale');
|
||||
const UrlUtil = require('../../util/url-util');
|
||||
const FileSaver = require('../../util/file-saver');
|
||||
const AppSettingsModel = require('../../models/app-settings-model');
|
||||
const kdbxweb = require('kdbxweb');
|
||||
|
||||
const DefaultBackupPath = 'Backups/{name}.{date}.bak';
|
||||
|
@ -105,7 +106,8 @@ const SettingsFileView = Backbone.View.extend({
|
|||
this.model.get('keyChangeForce') > 0 ? this.model.get('keyChangeForce') : null,
|
||||
kdfParameters: this.kdfParametersToUi(this.model.get('kdfParameters')),
|
||||
storageProviders,
|
||||
canBackup
|
||||
canBackup,
|
||||
canExportXml: AppSettingsModel.instance.get('canExportXml')
|
||||
});
|
||||
if (!this.model.get('created')) {
|
||||
this.$el
|
||||
|
|
|
@ -36,9 +36,11 @@
|
|||
</div>
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
{{#if canExportXml}}
|
||||
<div class="settings__file-save-to settings__file-save-to-xml">
|
||||
<i class="fa fa-code"></i>{{res 'setFileSaveToXml'}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if storage}}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.10 (TBD)
|
||||
`+` config option to disable xml export (canExportXml)
|
||||
|
||||
##### v1.9.2 (2019-08-22)
|
||||
`-` fix #1235: custom themes loading
|
||||
`-` fix #1234: auto-type issues in xubuntu/xfce
|
||||
|
|
Loading…
Reference in New Issue