Skip to content

Commit c9fad71

Browse files
committed
fix(style): 按钮位置调整
1 parent 2285034 commit c9fad71

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

web/dashboard/src/business/workloads/deployments/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<el-button type="primary" size="small" @click="onCreate" v-has-permissions="{scope:'namespace',apiGroup:'apps',resource:'deployments',verb:'create'}">
88
{{ $t("commons.button.create") }}
99
</el-button>
10+
<el-button type="primary" size="small" :disabled="selects.length===0" @click="onScale()" v-has-permissions="{ scope: 'namespace', apiGroup: 'apps', resource: 'deployments', verb: 'update' }">
11+
{{ $t("commons.button.scale") }}
12+
</el-button>
1013
<el-button type="primary" size="small" :disabled="selects.length===0" @click="onDelete()" v-has-permissions="{scope:'namespace',apiGroup:'apps',resource:'deployments',verb:'delete'}">
1114
{{ $t("commons.button.delete") }}
1215
</el-button>
1316

14-
<el-button type="primary" size="small" :disabled="selects.length===0" @click="onScale()" v-has-permissions="{ scope: 'namespace', apiGroup: 'apps', resource: 'deployments', verb: 'update' }">
15-
{{ $t("commons.button.scale") }}
16-
</el-button>
1717
</div>
1818
<complex-table :selects.sync="selects" :data="data" v-loading="loading" :pagination-config="paginationConfig" :search-config="searchConfig" @search="search">
1919
<el-table-column type="selection" fix></el-table-column>

web/dashboard/src/business/workloads/statefulsets/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<el-button type="primary" size="small" @click="onCreate" v-has-permissions="{scope:'namespace',apiGroup:'apps',resource:'statefulsets',verb:'create'}">
88
{{ $t("commons.button.create") }}
99
</el-button>
10+
<el-button type="primary" size="small" :disabled="selects.length===0" @click="onScale()" v-has-permissions="{ scope: 'namespace', apiGroup: 'apps', resource: 'deployments', verb: 'update' }">
11+
{{ $t("commons.button.scale") }}
12+
</el-button>
1013
<el-button type="primary" size="small" :disabled="selects.length===0" @click="onDelete()" v-has-permissions="{scope:'namespace',apiGroup:'apps',resource:'statefulsets',verb:'delete'}">
1114
{{ $t("commons.button.delete") }}
1215
</el-button>
1316

14-
<el-button type="primary" size="small" :disabled="selects.length===0" @click="onScale()" v-has-permissions="{ scope: 'namespace', apiGroup: 'apps', resource: 'deployments', verb: 'update' }">
15-
{{ $t("commons.button.scale") }}
16-
</el-button>
1717
</div>
1818
<complex-table :selects.sync="selects" :data="data" v-loading="loading" :pagination-config="paginationConfig" :search-config="searchConfig" @search="search">
1919
<el-table-column type="selection" fix></el-table-column>

0 commit comments

Comments
 (0)