refactor: remove backup path display from OpenClaw save toasts

Backup paths are internal implementation details not actionable by users.
Simplify toast notifications to show only success/failure messages.
This commit is contained in:
Jason
2026-03-09 15:00:30 +08:00
parent 99ef870077
commit 44096b0e44
5 changed files with 51 additions and 37 deletions
+2 -10
View File
@@ -261,7 +261,7 @@ export function useProviderActions(activeApp: AppId) {
};
try {
const outcome = await openclawApi.setDefaultModel(model);
await openclawApi.setDefaultModel(model);
await queryClient.invalidateQueries({
queryKey: openclawKeys.defaultModel,
});
@@ -272,15 +272,7 @@ export function useProviderActions(activeApp: AppId) {
t("notifications.openclawDefaultModelSet", {
defaultValue: "已设为默认模型",
}),
{
closeButton: true,
description: outcome.backupPath
? t("openclaw.backupCreated", {
path: outcome.backupPath,
defaultValue: "Backup created: {{path}}",
})
: undefined,
},
{ closeButton: true },
);
} catch (error) {
const detail =