mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 06:50:26 +00:00
fix(app): don't auto nav to workspace after reset
This commit is contained in:
parent
c0d3dd51b1
commit
7b23bf7c1b
1 changed files with 14 additions and 4 deletions
|
|
@ -1125,13 +1125,23 @@ export default function Layout(props: ParentProps) {
|
||||||
setBusy(directory, false)
|
setBusy(directory, false)
|
||||||
dismiss()
|
dismiss()
|
||||||
|
|
||||||
const href = `/${base64Encode(directory)}/session`
|
|
||||||
navigate(href)
|
|
||||||
layout.mobileSidebar.hide()
|
|
||||||
|
|
||||||
showToast({
|
showToast({
|
||||||
title: language.t("workspace.reset.success.title"),
|
title: language.t("workspace.reset.success.title"),
|
||||||
description: language.t("workspace.reset.success.description"),
|
description: language.t("workspace.reset.success.description"),
|
||||||
|
actions: [
|
||||||
|
{
|
||||||
|
label: language.t("command.session.new"),
|
||||||
|
onClick: () => {
|
||||||
|
const href = `/${base64Encode(directory)}/session`
|
||||||
|
navigate(href)
|
||||||
|
layout.mobileSidebar.hide()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: language.t("common.dismiss"),
|
||||||
|
onClick: "dismiss",
|
||||||
|
},
|
||||||
|
],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue