File tree Expand file tree Collapse file tree 2 files changed +25
-14
lines changed
frontend/src/views/container Expand file tree Collapse file tree 2 files changed +25
-14
lines changed Original file line number Diff line number Diff line change 4242
4343 <el-descriptions class =" mt-4" :column =" 1" border :title =" $t('container.command')" >
4444 <el-descriptions-item :label =" $t('container.command')" >
45- <div v-if =" inspectData?.Config?.Cmd?.length" >
45+ <div v-if =" inspectData?.Config?.Cmd?.length" class = " tag-list " >
4646 <el-tag type =" info" v-for =" (entry, index) in inspectData?.Config?.Cmd" :key =" index" >
4747 {{ entry }}
4848 </el-tag >
4949 </div >
5050 <span v-else >-</span >
5151 </el-descriptions-item >
5252 <el-descriptions-item label =" ENTRYPONT" >
53- <div v-if =" inspectData?.Config?.Entrypoint?.length" >
53+ <div v-if =" inspectData?.Config?.Entrypoint?.length" class = " tag-list " >
5454 <el-tag type =" info" v-for =" (entry, index) in inspectData?.Config?.Entrypoint" :key =" index" >
5555 {{ entry }}
5656 </el-tag >
@@ -285,4 +285,12 @@ defineExpose({
285285 margin-bottom : 16px ;
286286 display : block ;
287287}
288+
289+ .tag-list {
290+ .el-tag {
291+ & ~ .el-tag {
292+ margin-left : 5px ;
293+ }
294+ }
295+ }
288296 </style >
Original file line number Diff line number Diff line change 1414 <el-descriptions-item :label =" $t('container.driver')" >
1515 {{ networkData?.Driver || '-' }}
1616 </el-descriptions-item >
17+ <el-descriptions-item
18+ v-if =" networkData?.Options?.parent"
19+ :label =" $t('container.parentNetworkCard')"
20+ >
21+ {{ networkData?.Options?.parent }}
22+ </el-descriptions-item >
1723 <el-descriptions-item :label =" $t('commons.table.createdAt')" >
1824 {{ formatDate(networkData?.Created) }}
1925 </el-descriptions-item >
3945 :label =" $t('container.subnet') + (index > 0 ? ' ' + (index + 1) : '')"
4046 >
4147 <div v-if =" config" >
42- <div v-if =" config.Subnet" >
43- <el-text class =" mr-2" >{{ $t('container.subnet') }}:</el-text >
44- <el-tag >{{ config.Subnet }}</el-tag >
45- </div >
46- <div v-if =" config.Gateway" class =" mt-1" >
47- <el-text class =" mr-2" >{{ $t('container.gateway') }}:</el-text >
48- <el-tag >{{ config.Gateway }}</el-tag >
49- </div >
50- <div v-if =" config.IPRange" class =" mt-1" >
51- <el-text class =" mr-2" >{{ $t('container.scope') }}:</el-text >
52- <el-tag >{{ config.IPRange }}</el-tag >
53- </div >
48+ <el-tag v-if =" config.Subnet" type =" info" :label =" $t('container.subnet')" >
49+ {{ $t('container.subnet') }}: {{ config.Subnet }}
50+ </el-tag >
51+ <el-tag class =" ml-2" v-if =" config.Gateway" type =" info" :label =" $t('container.gateway')" >
52+ {{ $t('container.gateway') }}: {{ config.Gateway }}
53+ </el-tag >
54+ <el-tag class =" ml-2" v-if =" config.IPRange" type =" info" :label =" $t('container.scope')" >
55+ {{ $t('container.scope') }}: {{ config.IPRange }}
56+ </el-tag >
5457 </div >
5558 <span v-else >-</span >
5659 </el-descriptions-item >
You can’t perform that action at this time.
0 commit comments