{{ t('notes', 'File extension for new notes') }} @@ -87,6 +92,7 @@ import { NcAppSettingsDialog, NcAppSettingsSection, + NcCheckboxRadioSwitch, } from '@nextcloud/vue' import { getFilePickerBuilder } from '@nextcloud/dialogs' @@ -101,6 +107,7 @@ export default { components: { NcAppSettingsDialog, NcAppSettingsSection, + NcCheckboxRadioSwitch, HelpMobile, }, @@ -192,6 +199,17 @@ export default { }) }, + onChangeStartUp(event) { + this.saving = true + this.settings.loadRecentOnStartUp = event.target.checked + return setSettings(this.settings) + .catch(() => { + }) + .then(() => { + this.saving = false + }) + }, + setSettingsOpen(newValue) { this.settingsOpen = newValue this.$emit('update:open', newValue)