Skip to content

Commit e8475ee

Browse files
committed
fix(node): node 标签换行显示
1 parent 4445188 commit e8475ee

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

web/dashboard/src/business/cluster/nodes/index.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@
4747
<el-button v-else type="success" size="mini" plain round>
4848
Ready
4949
</el-button>
50-
<el-button v-if="row.nodeStatus.indexOf('SchedulingDisabled') !== -1" type="warning" size="mini" plain round>
51-
SchedulingDisabled
52-
</el-button>
50+
<div v-if="row.nodeStatus.indexOf('SchedulingDisabled') !== -1" style="margin-top:3px">
51+
<el-button type="warning" size="mini" plain round>
52+
SchedulingDisabled
53+
</el-button>
54+
</div>
5355
</template>
5456
</el-table-column>
5557
<el-table-column :label="$t('business.node.role')" prop="metadata.labels" min-width="180px" show-overflow-tooltip>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export default {
327327
},
328328
loadStorageClass() {
329329
this.sc_list = []
330-
if (!checkPermissions({ scope: "namespace", apiGroup: "storage.k8s.io", resource: "storageclasses", verb: "list" })) {
330+
if (!checkPermissions({ scope: "cluster", apiGroup: "storage.k8s.io", resource: "storageclasses", verb: "list" })) {
331331
return
332332
}
333333
listStorageClasses(this.clusterName).then((res) => {

0 commit comments

Comments
 (0)