You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
824 B
JavaScript
41 lines
824 B
JavaScript
export class PageSettings extends HTMLElement {
|
|
constructor() {
|
|
super()
|
|
this.attachShadow({mode: 'open'})
|
|
this.language = navigator.language
|
|
this.network = document.createElement(
|
|
'm-settings-network-settings'
|
|
)
|
|
this.shadowRoot.append(this.network)
|
|
}
|
|
|
|
connectedCallback() {
|
|
const style = document.createElement('style')
|
|
style.textContent = `
|
|
:host {
|
|
max-height: 55vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
overflow-y: auto;
|
|
}
|
|
`
|
|
this.shadowRoot.append(style)
|
|
}
|
|
|
|
get data() {
|
|
return {
|
|
...this.network.data,
|
|
}
|
|
}
|
|
|
|
set data(value) {
|
|
this.network.data = {
|
|
networkAccess: value.networkAccess
|
|
}
|
|
}
|
|
|
|
set cspProfiles(value) {
|
|
this.network.cspProfiles = value
|
|
}
|
|
} |