Skip to content

Commit

Permalink
fix: the ui loading function is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Sep 10, 2024
1 parent b6188a0 commit 5c907e6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion console/atest-ui/src/views/SecretManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
<el-button
type="primary"
@click="submitForm(secretFormRef)"
:loading="creatingLoading"
v-loading="creatingLoading"
test-id="store-form-submit"
>{{t('button.submit')}}</el-button
>
Expand Down
2 changes: 1 addition & 1 deletion console/atest-ui/src/views/StoreManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function updateKeys() {
<el-button
type="primary"
@click="submitForm(storeFormRef)"
:loading="creatingLoading"
v-loading="creatingLoading"
test-id="store-form-submit"
>{{t('button.submit')}}</el-button
>
Expand Down
6 changes: 3 additions & 3 deletions console/atest-ui/src/views/TestCase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ Magic.Keys(() => {
<el-container>
<el-header style="padding-left: 5px;">
<div style="margin-bottom: 5px">
<el-button type="primary" @click="saveTestCase" :icon="Edit" :loading="saveLoading"
<el-button type="primary" @click="saveTestCase" :icon="Edit" v-loading="saveLoading"
disabled v-if="Cache.GetCurrentStore().readOnly"
>{{ t('button.save') }}</el-button>
<el-button type="primary" @click="saveTestCase" :icon="Edit" :loading="saveLoading"
<el-button type="primary" @click="saveTestCase" :icon="Edit" v-loading="saveLoading"
v-if="!Cache.GetCurrentStore().readOnly"
>{{ t('button.save') }}</el-button>
<el-button type="danger" @click="deleteTestCase" :icon="Delete">{{ t('button.delete') }}</el-button>
Expand Down Expand Up @@ -597,7 +597,7 @@ Magic.Keys(() => {
</template>
</el-autocomplete>

<el-dropdown split-button type="primary" @click="sendRequest" :loading="requestLoading">
<el-dropdown split-button type="primary" @click="sendRequest" v-loading="requestLoading">
{{ t('button.send') }}
<template #dropdown>
<el-dropdown-menu>
Expand Down
2 changes: 1 addition & 1 deletion console/atest-ui/src/views/TestSuite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ const targetSuiteDuplicateName = ref('')
<el-button
type="primary"
@click="submitForm(testcaseFormRef)"
:loading="suiteCreatingLoading"
v-loading="suiteCreatingLoading"
test-id="case-form-submit"
>{{ t('button.submit') }}</el-button
>
Expand Down
2 changes: 1 addition & 1 deletion console/atest-ui/src/views/TestingPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ const suiteKinds = [{
<el-button
type="primary"
@click="submitForm(suiteFormRef)"
:loading="suiteCreatingLoading"
v-loading="suiteCreatingLoading"
test-id="suite-form-submit"
>{{ t('button.submit') }}</el-button
>
Expand Down

0 comments on commit 5c907e6

Please sign in to comment.