diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index b4c0e77ae..524ff0e33 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -495,6 +495,7 @@ const message = { 'The upgrade operation requires rebuilding the container, and any non-persistent data will be lost. Do you want to continue?', oldImage: 'Current image', targetImage: 'Target image', + targetImageHelper: 'Please enter the target image version', appHelper: 'This container is sourced from the application store. Upgrading it may cause the service to be unavailable. Do you want to continue?', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 4a849a5c5..2c6acb97c 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -484,6 +484,7 @@ const message = { upgradeWarning2: '升級操作需要重建容器,任何未持久化的數據將會丟失,是否繼續?', oldImage: '當前鏡像', targetImage: '目標鏡像', + targetImageHelper: '請輸入目標鏡像版本', appHelper: '該容器來源於應用商店,升級可能導致該服務不可用,是否繼續?', server: '服務器', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 5b231308e..825309e45 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -484,6 +484,7 @@ const message = { upgradeWarning2: '升级操作需要重建容器,任何未持久化的数据将会丢失,是否继续?', oldImage: '当前镜像', targetImage: '目标镜像', + targetImageHelper: '请输入目标镜像版本', appHelper: '该容器来源于应用商店,升级可能导致该服务不可用,是否继续?', server: '服务器', diff --git a/frontend/src/views/container/container/upgrade/index.vue b/frontend/src/views/container/container/upgrade/index.vue index a612e8fe7..d365a889e 100644 --- a/frontend/src/views/container/container/upgrade/index.vue +++ b/frontend/src/views/container/container/upgrade/index.vue @@ -15,12 +15,27 @@ /> - {{ form.imageName }}:{{ form.oldTag }} + + {{ form.imageName.substring(0, 50) }}...:{{ form.oldTag }} + + {{ form.imageName }}:{{ form.oldTag }} - - - - + + + {{ $t('container.upgradeHelper') }} @@ -72,7 +87,7 @@ const acceptParams = (props: DialogProps): void => { form.name = props.container; form.imageName = props.image.indexOf(':') !== -1 ? props.image.split(':')[0] : props.image; form.oldTag = props.image.indexOf(':') !== -1 ? props.image.split(':')[1] : 'latest'; - form.newTag = ''; + form.newTag = form.oldTag; form.fromApp = props.fromApp; drawerVisiable.value = true; };