From 21db8e1b8335df39f8d340c74e05ef7e8594e9c6 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Wed, 15 Jan 2025 09:23:18 -0800 Subject: [PATCH] fix: Fix workflow crawl list layout (#2309) - Fixes workflow detail page crawls tab issue when the crawls list is long - Removes extraneous and incorrectly placed spinner --- frontend/src/pages/org/workflow-detail.ts | 54 ++++++++++------------- 1 file changed, 23 insertions(+), 31 deletions(-) diff --git a/frontend/src/pages/org/workflow-detail.ts b/frontend/src/pages/org/workflow-detail.ts index 61d156c3..8e096cd2 100644 --- a/frontend/src/pages/org/workflow-detail.ts +++ b/frontend/src/pages/org/workflow-detail.ts @@ -864,7 +864,7 @@ export class WorkflowDetail extends BtrixElement { private renderCrawls() { return html` -
+
@@ -912,36 +912,28 @@ export class WorkflowDetail extends BtrixElement {
- ${when( - this.crawls, - () => - this.crawls!.items.map( - (crawl: Crawl) => - html` - ${when( - this.isCrawler, - () => - html` - this.confirmDeleteCrawl(crawl)} - > - - ${msg("Delete Crawl")} - - `, - )}`, - ), - () => - html`
- -
`, + ${when(this.crawls, () => + this.crawls!.items.map( + (crawl: Crawl) => + html` + ${when( + this.isCrawler, + () => + html` + this.confirmDeleteCrawl(crawl)} + > + + ${msg("Delete Crawl")} + + `, + )}`, + ), )}