fix(ui): shorten Control UI clear action label (#70355)

This commit is contained in:
Val Alexander
2026-04-22 16:52:53 -05:00
committed by GitHub
parent e56a6f87ec
commit eb689f3535
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ describe("config view", () => {
} {
const buttons = Array.from(container.querySelectorAll("button"));
return {
clearButton: buttons.find((btn) => btn.textContent?.trim() === "Clear pending updates"),
clearButton: buttons.find((btn) => btn.textContent?.trim() === "Clear"),
saveButton: buttons.find((btn) => btn.textContent?.trim() === "Save"),
applyButton: buttons.find((btn) => btn.textContent?.trim() === "Apply"),
};

View File

@@ -961,7 +961,7 @@ export function renderConfig(props: ConfigProps) {
${props.loading ? t("common.loading") : t("common.reload")}
</button>
<button class="btn btn--sm" ?disabled=${!hasChanges} @click=${props.onReset}>
Clear pending updates
Clear
</button>
<button class="btn btn--sm primary" ?disabled=${!canSave} @click=${props.onSave}>
${props.saving ? "Saving…" : "Save"}