Skip to content

Commit e97da7f

Browse files
committed
fix(kernelApi): reset needRestart flag after core restart
1 parent 08519f1 commit e97da7f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

frontend/src/App.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ envStore.setupEnv().then(async () => {
151151

152152
<CommandView v-if="!loading" />
153153

154-
<div v-if="kernelApiStore.needRestart" class="fixed right-32 bottom-32">
154+
<div
155+
v-if="kernelApiStore.needRestart || kernelApiStore.restarting"
156+
class="fixed right-32 bottom-32"
157+
>
155158
<Button
156159
@click="handleRestartCore"
157160
v-tips="'home.overview.restart'"

frontend/src/stores/kernelApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ export const useKernelApiStore = defineStore('kernelApi', () => {
276276

277277
corePid.value = -1
278278
running.value = false
279+
needRestart.value = false
279280

280281
destroyCoreWebsockets()
281282

0 commit comments

Comments
 (0)