mirror of https://github.com/keeweb/keeweb.git
Helper button for creating search index
This commit is contained in:
parent
f3918a5ec4
commit
ca599d14e2
|
@ -798,6 +798,7 @@
|
|||
"importPassword": "Import password",
|
||||
"uploadCSV": "Upload CSV",
|
||||
"csvFormat": "Format",
|
||||
"csvExtraFieldsHelperText": "It is possible to import extra fields by adding them to the csv."
|
||||
"csvExtraFieldsHelperText": "It is possible to import extra fields by adding them to the csv.",
|
||||
"updateSearchIndex": "Opprett search index",
|
||||
"passwordBankTitle": "Passwordbank",
|
||||
}
|
|
@ -618,5 +618,6 @@
|
|||
"importPassword": "Importer passord",
|
||||
"uploadCSV": "Last opp CSV",
|
||||
"csvFormat": "Format",
|
||||
"csvExtraFieldsHelperText": "Det er mulig å importere flere felter ved å legge de til i csv-en."
|
||||
"csvExtraFieldsHelperText": "Det er mulig å importere flere felter ved å legge de til i csv-en.",
|
||||
"updateSearchIndex": "Oppdater søkeindex",
|
||||
}
|
|
@ -62,7 +62,8 @@ class SettingsFileView extends View {
|
|||
'change #settings__file-yubikey': 'changeYubiKey',
|
||||
'click .settings__file-button-delete': 'delete',
|
||||
'click .settings__file-button-rename': 'rename',
|
||||
'change #settings-field-import-csv': 'importCsv'
|
||||
'change #settings-field-import-csv': 'importCsv',
|
||||
'click .settings__file-button-update-search-index': 'updateSearchIndex'
|
||||
};
|
||||
|
||||
constructor(model, options) {
|
||||
|
@ -260,6 +261,12 @@ class SettingsFileView extends View {
|
|||
this.save();
|
||||
}
|
||||
|
||||
updateSearchIndex() {
|
||||
// Hack for bypassing dirty check.
|
||||
this.model.modified = Date();
|
||||
this.save();
|
||||
}
|
||||
|
||||
toggleChooser() {
|
||||
this.$el.find('.settings__file-save-choose').toggleClass('hide');
|
||||
}
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
{{#ifeq storage 'file'}}{{res 'setFileSave'}}{{/ifeq}}
|
||||
{{#ifneq storage 'file'}}{{res 'setFileSyncVerb'}}{{/ifneq}}
|
||||
</button>
|
||||
<button class="settings__file-button-update-search-index" {{#if syncing }}disabled{{/if}}>
|
||||
{{res 'updateSearchIndex'}}
|
||||
</button>
|
||||
</div>
|
||||
{{else}}
|
||||
<p>{{res 'noWriteAccess'}}</p>
|
||||
|
|
Loading…
Reference in New Issue