Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cluster): support rollback config #352

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/views/cluster-explorer/core/clusters/create/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
<k-input v-model.trim="name" label="Name" placeholder="e.g. test" required :error="nameRequired" />
<div></div>
<label class="justify-self-end">
<input type="checkbox" />
<input v-model="notRollback" type="checkbox" />
Not rollback(for debug)
<tooltip>
<tooltip v-if="currentProvider">
<k-icon type="prompt"></k-icon>
<template #popover>xxxxxxxxxx</template>
<template #popover>{{ currentProvider.config.rollback.description }}</template>
</tooltip>
</label>
</div>
Expand Down Expand Up @@ -132,6 +132,7 @@ const name = ref('')
const creating = ref(false)
const formErrors = ref([])
const formLoading = ref(false)
const notRollback = ref(false)

provide('formLoading', {
showLoading: () => {
Expand Down Expand Up @@ -296,6 +297,7 @@ const create = async () => {
return
}
form.config.name = name.value
form.config.rollback = !notRollback.value
const providerSchema = currentProvider.value
const provider = providerSchema.id
errors = validate(form, providerSchema)
Expand Down