Skip to content

Commit

Permalink
fix: FIx the issue of container editing not opening successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu committed Dec 13, 2024
1 parent 1d3a44d commit e914e00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lang/modules/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const message = {
handle: 'Trigger',
expand: 'Expand',
collapse: 'Collapse',
log: 'View logs',
log: 'Logs',
back: 'Back',
backup: 'Backup',
recover: 'Recover',
Expand Down Expand Up @@ -667,7 +667,7 @@ const message = {
openStdin: 'Keep STDIN open even if not attached (-i)',
custom: 'Custom',
emptyUser: 'When empty, you will log in as default',
containerTerminal: 'Open terminal',
containerTerminal: 'Terminal',
privileged: 'Privileged',
privilegedHelper:
'Allow the container to perform certain privileged operations on the host, which may increase container risks. Use with caution!',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/container/container/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
/>
<fu-table-operations
fix
width="180px"
width="200px"
:ellipsis="2"
:buttons="buttons"
:label="$t('commons.table.operate')"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/views/container/container/operate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ const acceptParams = (params: DialogProps): void => {
dialogData.value.rowData.memory = Number(dialogData.value.rowData.memory.toFixed(2));
let itemCmd = '';
dialogData.value.rowData.cmd = dialogData.value.rowData?.cmd || [];
for (const item of dialogData.value.rowData.cmd) {
if (item.indexOf(' ') !== -1) {
itemCmd += `"${escapeQuotes(item)}" `;
Expand All @@ -368,6 +369,7 @@ const acceptParams = (params: DialogProps): void => {
}
dialogData.value.rowData.cmdStr = itemCmd.trimEnd();
let itemEntrypoint = '';
dialogData.value.rowData.entrypoint = dialogData.value.rowData?.entrypoint || [];
for (const item of dialogData.value.rowData.entrypoint) {
if (item.indexOf(' ') !== -1) {
itemEntrypoint += `"${escapeQuotes(item)}" `;
Expand Down

0 comments on commit e914e00

Please sign in to comment.