mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
fix(ui): shorten Control UI clear action label (#70355)
This commit is contained in:
@@ -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"),
|
||||
};
|
||||
|
||||
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user