use custom class for storage

pages^2
bat 3 years ago
parent e33b7195b9
commit 6906520550

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

@ -136,6 +136,16 @@ export class PageSettings extends HTMLElement {
this.network.cspProfiles = value 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() { get language() {
return this._language return this._language
} }

Loading…
Cancel
Save