Skip to content

Commit 7d533cd

Browse files
committed
add clear button
1 parent 397fdc4 commit 7d533cd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

frontend/src/pages/org/workflow-detail.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,25 @@ export class WorkflowDetail extends BtrixElement {
11471147
};
11481148
}}
11491149
></btrix-archived-item-state-filter>
1150+
${when(
1151+
this.crawlsParams.state?.length,
1152+
() => html`
1153+
<sl-button
1154+
class="[--sl-color-primary-600:var(--sl-color-neutral-500)] part-[label]:font-medium"
1155+
size="small"
1156+
variant="text"
1157+
@click=${() => {
1158+
this.crawlsParams = {
1159+
...this.crawlsParams,
1160+
state: undefined,
1161+
};
1162+
}}
1163+
>
1164+
<sl-icon slot="prefix" name="x-lg"></sl-icon>
1165+
${msg("Clear")}
1166+
</sl-button>
1167+
`,
1168+
)}
11501169
</div>
11511170
</div>
11521171

0 commit comments

Comments
 (0)