|
|
|
@ -112,14 +112,12 @@ export class GatewayLogsComponent implements OnInit, AfterViewInit { |
|
|
|
} |
|
|
|
|
|
|
|
private updateWidgetTitle(): void { |
|
|
|
const titlePlaceholder = '${connectorName}'; |
|
|
|
if (this.ctx.settings.isConnectorLog && this.ctx.settings.connectorLogState) { |
|
|
|
const widgetTitle = this.ctx['widget'].config.title; |
|
|
|
const titlePlaceholder = '${connectorName}'; |
|
|
|
if (widgetTitle.includes(titlePlaceholder)) { |
|
|
|
const connector = this.ctx.stateController.getStateParams()[this.ctx.settings.connectorLogState]; |
|
|
|
this.ctx.widgetTitle = widgetTitle.replace(titlePlaceholder, connector.key); |
|
|
|
} else { |
|
|
|
this.ctx.widgetTitle = widgetTitle; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|