Merge pull request 'use custom class for storage' (#7) from storage-class into pages

Reviewed-on: https://codeberg.org/macchiato/settings/pulls/7
pages
bat 3 years ago
commit 913deecf1c

@ -88,7 +88,7 @@ export class Connections extends HTMLElement {
bGroup.addPrimary(this.text.add, () => {
const path = edit.pageInput.value
const access = edit.accessSelect.value
const exists = localStorage.getItem(path)
const exists = this.checkExists(path)
if (!exists) {
edit.error = 'doesntExist'
return

@ -136,6 +136,16 @@ export class PageSettings extends HTMLElement {
this.network.cspProfiles = value
}
set checkExists(value) {
this._checkExists = value
this.outbound.checkExists = value
this.inbound.checkExists = value
}
get checkExists() {
return this._checkExists
}
get language() {
return this._language
}

Loading…
Cancel
Save