Browse Source

feat: 放开 1panel-network 按钮禁用 (#2052)

pull/2057/head
ssongliu 1 year ago committed by GitHub
parent
commit
ca0368c931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      frontend/src/views/container/network/index.vue

9
frontend/src/views/container/network/index.vue

@ -51,7 +51,9 @@
</el-table-column>
<el-table-column width="90">
<template #default="{ row }">
<el-tag effect="dark" round v-if="row.isSystem">system</el-tag>
<el-tag effect="dark" round v-if="row.isSystem || row.name === '1panel-network'">
system
</el-tag>
</template>
</el-table-column>
<el-table-column
@ -78,11 +80,12 @@
</el-table-column>
<el-table-column
prop="createdAt"
show-overflow-tooltip
min-width="90"
:label="$t('commons.table.date')"
:formatter="dateFormat"
/>
<fu-table-operations :buttons="buttons" :label="$t('commons.table.operate')" fix />
<fu-table-operations width="100" :buttons="buttons" :label="$t('commons.table.operate')" fix />
</ComplexTable>
</template>
</LayoutContent>
@ -222,7 +225,7 @@ const onInspect = async (id: string) => {
};
function isSystem(val: string) {
return val === 'bridge' || val === '1panel-network' || val === 'none' || val === 'host';
return val === 'bridge' || val === 'none' || val === 'host';
}
const buttons = [

Loading…
Cancel
Save