From d3bb524971ed89c7d146f79029da17a18c92e89d Mon Sep 17 00:00:00 2001 From: sua yoo Date: Tue, 7 Mar 2023 19:13:56 -0800 Subject: [PATCH] Fix missing crawl config name (#683) --- frontend/src/pages/org/crawl-configs-detail.ts | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/frontend/src/pages/org/crawl-configs-detail.ts b/frontend/src/pages/org/crawl-configs-detail.ts index 5ce1e7ce..80e266f8 100644 --- a/frontend/src/pages/org/crawl-configs-detail.ts +++ b/frontend/src/pages/org/crawl-configs-detail.ts @@ -188,7 +188,7 @@ export class CrawlTemplatesDetail extends LiteElement { > ${configId - ? msg(str`Back to ${this.crawlConfig?.name}`) + ? msg(str`Back to ${this.renderName()}`) : msg("Back to Crawl Configs")} @@ -200,11 +200,7 @@ export class CrawlTemplatesDetail extends LiteElement { ${this.renderHeader(this.crawlConfig!.id)}
-

- ${this.crawlConfig?.name - ? html`${this.crawlConfig.name}` - : ""} -

+

${this.renderName()}

${this.crawlConfig.name}.` - ), + message: msg(html`Deactivated ${this.renderName()}.`), variant: "success", icon: "check2-circle", }); @@ -561,8 +555,8 @@ export class CrawlTemplatesDetail extends LiteElement { this.notify({ message: isDeactivating - ? msg(html`Deactivated ${this.crawlConfig.name}.`) - : msg(html`Deleted ${this.crawlConfig.name}.`), + ? msg(html`Deactivated ${this.renderName()}.`) + : msg(html`Deleted ${this.renderName()}.`), variant: "success", icon: "check2-circle", });