Skip to content
Snippets Groups Projects
Commit fea5e147 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Add attributes to appshell for no brand appearance

parent ec96bb8a
No related branches found
No related tags found
No related merge requests found
Pipeline #14460 passed
...@@ -65,6 +65,10 @@ export class AppShell extends ScopedElementsMixin(LitElement) { ...@@ -65,6 +65,10 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
this.matomo = null; this.matomo = null;
this._attrObserver = new MutationObserver(this.onAttributeObserved); this._attrObserver = new MutationObserver(this.onAttributeObserved);
this.shellName = 'TU Graz';
this.shellSubname= 'Graz University of Technology';
this.noBrand = false;
} }
static get scopedElements() { static get scopedElements() {
...@@ -233,7 +237,10 @@ export class AppShell extends ScopedElementsMixin(LitElement) { ...@@ -233,7 +237,10 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
_loginStatus: { type: Boolean, attribute: false }, _loginStatus: { type: Boolean, attribute: false },
matomoUrl: { type: String, attribute: "matomo-url" }, matomoUrl: { type: String, attribute: "matomo-url" },
matomoSiteId: { type: Number, attribute: "matomo-site-id" }, matomoSiteId: { type: Number, attribute: "matomo-site-id" },
noWelcomePage: { type: Boolean, attribute: "no-welcome-page" } noWelcomePage: { type: Boolean, attribute: "no-welcome-page" },
shellName: { type: String, attribute: "shell-name" },
shellSubname: { type: String, attribute: "shell-subname" },
noBrand: { type: Boolean, attribute: "no-brand" }
}; };
} }
...@@ -762,11 +769,11 @@ export class AppShell extends ScopedElementsMixin(LitElement) { ...@@ -762,11 +769,11 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
</div> </div>
<div class="hd2-left"> <div class="hd2-left">
<div class="header"> <div class="header">
TU Graz<br>Graz University of Technology ${this.shellName}<br>${this.shellSubname}
</div> </div>
</div> </div>
<div class="hd2-right"> <div class="hd2-right">
<dbp-tugraz-logo id="main-logo" lang="${this.lang}"></dbp-tugraz-logo> <dbp-tugraz-logo id="main-logo" lang="${this.lang}" class="${classMap({hidden: this.noBrand})}"></dbp-tugraz-logo>
</div> </div>
</header> </header>
......
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