mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: FIx the issue of container editing not opening successfully (#7360)
This commit is contained in:
parent
2d098f8078
commit
141786e4e9
@ -39,7 +39,7 @@ const message = {
|
|||||||
handle: 'Trigger',
|
handle: 'Trigger',
|
||||||
expand: 'Expand',
|
expand: 'Expand',
|
||||||
collapse: 'Collapse',
|
collapse: 'Collapse',
|
||||||
log: 'View logs',
|
log: 'Logs',
|
||||||
back: 'Back',
|
back: 'Back',
|
||||||
backup: 'Backup',
|
backup: 'Backup',
|
||||||
recover: 'Recover',
|
recover: 'Recover',
|
||||||
@ -667,7 +667,7 @@ const message = {
|
|||||||
openStdin: 'Keep STDIN open even if not attached (-i)',
|
openStdin: 'Keep STDIN open even if not attached (-i)',
|
||||||
custom: 'Custom',
|
custom: 'Custom',
|
||||||
emptyUser: 'When empty, you will log in as default',
|
emptyUser: 'When empty, you will log in as default',
|
||||||
containerTerminal: 'Open terminal',
|
containerTerminal: 'Terminal',
|
||||||
privileged: 'Privileged',
|
privileged: 'Privileged',
|
||||||
privilegedHelper:
|
privilegedHelper:
|
||||||
'Allow the container to perform certain privileged operations on the host, which may increase container risks. Use with caution!',
|
'Allow the container to perform certain privileged operations on the host, which may increase container risks. Use with caution!',
|
||||||
|
@ -292,7 +292,7 @@
|
|||||||
/>
|
/>
|
||||||
<fu-table-operations
|
<fu-table-operations
|
||||||
fix
|
fix
|
||||||
width="180px"
|
width="200px"
|
||||||
:ellipsis="2"
|
:ellipsis="2"
|
||||||
:buttons="buttons"
|
:buttons="buttons"
|
||||||
:label="$t('commons.table.operate')"
|
:label="$t('commons.table.operate')"
|
||||||
|
@ -359,6 +359,7 @@ const acceptParams = (params: DialogProps): void => {
|
|||||||
dialogData.value.rowData.memory = Number(dialogData.value.rowData.memory.toFixed(2));
|
dialogData.value.rowData.memory = Number(dialogData.value.rowData.memory.toFixed(2));
|
||||||
|
|
||||||
let itemCmd = '';
|
let itemCmd = '';
|
||||||
|
dialogData.value.rowData.cmd = dialogData.value.rowData?.cmd || [];
|
||||||
for (const item of dialogData.value.rowData.cmd) {
|
for (const item of dialogData.value.rowData.cmd) {
|
||||||
if (item.indexOf(' ') !== -1) {
|
if (item.indexOf(' ') !== -1) {
|
||||||
itemCmd += `"${escapeQuotes(item)}" `;
|
itemCmd += `"${escapeQuotes(item)}" `;
|
||||||
@ -368,6 +369,7 @@ const acceptParams = (params: DialogProps): void => {
|
|||||||
}
|
}
|
||||||
dialogData.value.rowData.cmdStr = itemCmd.trimEnd();
|
dialogData.value.rowData.cmdStr = itemCmd.trimEnd();
|
||||||
let itemEntrypoint = '';
|
let itemEntrypoint = '';
|
||||||
|
dialogData.value.rowData.entrypoint = dialogData.value.rowData?.entrypoint || [];
|
||||||
for (const item of dialogData.value.rowData.entrypoint) {
|
for (const item of dialogData.value.rowData.entrypoint) {
|
||||||
if (item.indexOf(' ') !== -1) {
|
if (item.indexOf(' ') !== -1) {
|
||||||
itemEntrypoint += `"${escapeQuotes(item)}" `;
|
itemEntrypoint += `"${escapeQuotes(item)}" `;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user