Fix copy tags button disabling when no tags on Crawl Details page (#877)

This commit is contained in:
Henry Wilkinson 2023-05-24 12:30:31 -04:00 committed by GitHub
parent e94e179bb9
commit f788934ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -455,8 +455,8 @@ export class CrawlDetail extends LiteElement {
</sl-menu-item>
<sl-menu-item
@click=${() =>
CopyButton.copyToClipboard(this.crawl!.tags.join(","))}
?disabled=${this.crawl.tags.length}
CopyButton.copyToClipboard(this.crawl!.tags.join(", "))}
?disabled=${!this.crawl.tags.length}
>
<sl-icon name="tags" slot="prefix"></sl-icon>
${msg("Copy Tags")}

View File

@ -545,7 +545,7 @@ export class CrawlsList extends LiteElement {
${msg("Copy Crawl ID")}
</sl-menu-item>
<sl-menu-item
@click=${() => CopyButton.copyToClipboard(crawl.tags.join(","))}
@click=${() => CopyButton.copyToClipboard(crawl.tags.join(", "))}
?disabled=${!crawl.tags.length}
>
<sl-icon name="tags" slot="prefix"></sl-icon>

View File

@ -650,7 +650,7 @@ export class WorkflowDetail extends LiteElement {
${msg("Edit Workflow Settings")}
</sl-menu-item>
<sl-menu-item
@click=${() => CopyButton.copyToClipboard(workflow.tags.join(","))}
@click=${() => CopyButton.copyToClipboard(workflow.tags.join(", "))}
?disabled=${!workflow.tags.length}
>
<sl-icon name="tags" slot="prefix"></sl-icon>

View File

@ -428,7 +428,7 @@ export class WorkflowsList extends LiteElement {
${msg("Edit Workflow Settings")}
</sl-menu-item>
<sl-menu-item
@click=${() => CopyButton.copyToClipboard(workflow.tags.join(","))}
@click=${() => CopyButton.copyToClipboard(workflow.tags.join(", "))}
?disabled=${!workflow.tags.length}
>
<sl-icon name="tags" slot="prefix"></sl-icon>