Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Set table.create startguide task finished when closing the task

天舟f9b7804f273b
diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vue
index 4d9e1b2b0f..b0b85f6d47 100644
--- a/frontend/src/views/TaskDetail.vue
+++ b/frontend/src/views/TaskDetail.vue
@@ -531,6 +531,15 @@ export default {
payload: payloadChanged ? state.task.payload : undefined,
},
() => {
+ if (
+ payload.transition.to == "DONE" &&
+ taskTemplate.value.type == "bytebase.database.schema.update"
+ ) {
+ store.dispatch("uistate/saveIntroStateByKey", {
+ key: "table.create",
+ newState: true,
+ });
+ }
payload.didTransit();
}
);
@@ -563,13 +572,6 @@ export default {
.dispatch("task/createTask", state.task)
.then((createdTask) => {
router.push(`/task/${taskSlug(createdTask.name, createdTask.id)}`);
-
- if (taskTemplate.value.type == "bytebase.database.schema.update") {
- store.dispatch("uistate/saveIntroStateByKey", {
- key: "table.create",
- newState: true,
- });
- }
})
.catch((error) => {
console.log(error);