Skip to content
Snippets Groups Projects
Unverified Commit e660d2a3 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add getProperties method

parent a4b46399
No related branches found
No related tags found
No related merge requests found
Pipeline #15626 passed
...@@ -225,7 +225,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) { ...@@ -225,7 +225,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
} }
static get properties() { static get properties() {
return Object.assign({ return this.getProperties({
lang: { type: String, reflect: true }, lang: { type: String, reflect: true },
src: { type: String }, src: { type: String },
basePath: { type: String, attribute: 'base-path' }, basePath: { type: String, attribute: 'base-path' },
...@@ -243,7 +243,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) { ...@@ -243,7 +243,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
shellName: { type: String, attribute: "shell-name" }, shellName: { type: String, attribute: "shell-name" },
shellSubname: { type: String, attribute: "shell-subname" }, shellSubname: { type: String, attribute: "shell-subname" },
noBrand: { type: Boolean, attribute: "no-brand" } noBrand: { type: Boolean, attribute: "no-brand" }
}, super.properties); });
} }
_updateAuth(login) { _updateAuth(login) {
......
...@@ -86,6 +86,10 @@ export class AdapterLitElement extends LitElement { ...@@ -86,6 +86,10 @@ export class AdapterLitElement extends LitElement {
}; };
} }
static getProperties(properties = {}) {
return Object.assign(properties, super.properties);
}
attributeChangedCallback(name, oldValue, newValue) { attributeChangedCallback(name, oldValue, newValue) {
switch(name) { switch(name) {
case 'subscribe': case 'subscribe':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment