diff --git a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/controller/router-controller.js b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/controller/router-controller.js index 25497656d93cf..5f1e39b3317cd 100644 --- a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/controller/router-controller.js +++ b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/controller/router-controller.js @@ -41,7 +41,7 @@ export class RouterController { } getCurrentTitle(){ - let dot = "\u00B7"; + //let dot = "\u00B7"; let p = this.getCurrentPage(); if(p){ if(p.namespaceLabel){ @@ -49,7 +49,7 @@ export class RouterController { }else { let md = this.getCurrentMetaData(); if(md && md.extensionName){ - return md.extensionName + " " + dot + " " + p.title; + return md.extensionName;// + " " + dot + " " + p.title; }else { return p.title; } @@ -58,6 +58,19 @@ export class RouterController { return null; } + getCurrentSubTitle(){ + let p = this.getCurrentPage(); + if(p){ + if(!p.namespaceLabel){ + let md = this.getCurrentMetaData(); + if(md && md.extensionName){ + return p.title; + } + } + } + return null; + } + getCurrentNamespace(){ let p = this.getCurrentPage(); if(p){ diff --git a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-header.js b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-header.js index f2eb0235d4877..40e2f9d2dd766 100644 --- a/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-header.js +++ b/extensions/vertx-http/dev-ui-resources/src/main/resources/dev-ui/qwc/qwc-header.js @@ -67,6 +67,14 @@ export class QwcHeader extends observeState(LitElement) { color: var(--lumo-contrast-90pct); } + .subtitle { + display: flex; + align-items:center; + font-size: var(--lumo-font-size-xl); + padding-left: 8px; + color: var(--lumo-contrast-50pct); + } + .logo-text { padding-top: 10px; font-size: xx-large; @@ -89,6 +97,7 @@ export class QwcHeader extends observeState(LitElement) { static properties = { _title: {state: true}, + _subTitle: {state: true}, _rightSideNav: {state: true}, _selectedTheme: {state: true}, _themeOptions: {state: true}, @@ -98,6 +107,7 @@ export class QwcHeader extends observeState(LitElement) { constructor() { super(); this._title = "Extensions"; + this._subTitle = null; this._rightSideNav = ""; this._createThemeItems(); @@ -149,7 +159,7 @@ export class QwcHeader extends observeState(LitElement) { Dev UI - ${this._title} + ${this._renderTitle()}