Browse Source

refactoring

pull/11149/head
mpetrov 2 years ago
parent
commit
39db38051a
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-logs.component.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-logs.component.ts

@ -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;
}
}
}

Loading…
Cancel
Save