Skip to content

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

Show the accurate quickstart active step indicator

天舟6411b3def655
diff --git a/frontend/src/components/Quickstart.vue b/frontend/src/components/Quickstart.vue
index 4c7b4ca288..128882d445 100644
--- a/frontend/src/components/Quickstart.vue
+++ b/frontend/src/components/Quickstart.vue
@@ -42,7 +42,7 @@
/>
</svg>
</template>
- <template v-else-if="index == 0 || introList[index - 1].done">
+ <template v-else-if="isStepActive(index)">
<span
class="absolute h-4 w-4 rounded-full bg-blue-200"
></span>
@@ -125,6 +125,15 @@ export default {
},
]);
+ const isStepActive = (index: number): boolean => {
+ for (let i = index - 1; i >= 0; i--) {
+ if (!introList[i].done) {
+ return false;
+ }
+ }
+ return !introList[index].done;
+ };
+
const hideQuickstart = () => {
store
.dispatch("uistate/saveIntroStateByKey", {
@@ -146,7 +155,7 @@ export default {
});
};
- return { introList, hideQuickstart };
+ return { introList, isStepActive, hideQuickstart };
},
};
</script>