1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18:07 +08:00

fix: 容器列表样式调整 (#1620)

This commit is contained in:
ssongliu 2023-07-12 16:07:16 +08:00 committed by GitHub
parent e7a7d391e4
commit ec05e81286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 1 deletions

View File

@ -29,6 +29,7 @@ const message = {
watch: 'Watch',
handle: 'Handle',
expand: 'Expand',
collapse: 'Collapse',
log: 'Log',
back: 'Back',
backup: 'Backup',

View File

@ -29,6 +29,7 @@ const message = {
watch: '追蹤',
handle: '執行',
expand: '展開',
collapse: '收起',
log: '日誌',
back: '返回',
backup: '備份',

View File

@ -29,6 +29,7 @@ const message = {
watch: '追踪',
handle: '执行',
expand: '展开',
collapse: '收起',
log: '日志',
back: '返回',
backup: '备份',

View File

@ -117,6 +117,11 @@
{{ $t('commons.button.expand') }}...
</el-button>
</div>
<div v-if="row.expand && row.ports.length > 3">
<el-button type="primary" link @click="row.expand = false">
{{ $t('commons.button.shrink') }}
</el-button>
</div>
</div>
</template>
</el-table-column>

View File

@ -275,8 +275,12 @@ const acceptParams = (params: DialogProps): void => {
dialogData.value.rowData.envStr = dialogData.value.rowData.env.join('\n');
dialogData.value.rowData.exposedPorts = dialogData.value.rowData.exposedPorts || [];
for (const item of dialogData.value.rowData.exposedPorts) {
if (item.hostIP) {
item.host = item.hostIP + ':' + item.hostPort;
} else {
item.host = item.hostPort;
}
}
dialogData.value.rowData.volumes = dialogData.value.rowData.volumes || [];
}
loadLimit();