diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 3b494c5d8..af1cfdc3c 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -850,6 +850,8 @@ const message = { image: 'Image | Images', imagePull: 'Pull', imagePush: 'Push', + imagePushHelper: + 'Detected that this image has multiple tags. Please confirm that the image name used for pushing is: {0}', imageDelete: 'Image delete', imageTagDeleteHelper: 'Remove other tags associated with this image ID', repoName: 'Container registry', diff --git a/frontend/src/lang/modules/ja.ts b/frontend/src/lang/modules/ja.ts index 3c65c4bef..73eacd471 100644 --- a/frontend/src/lang/modules/ja.ts +++ b/frontend/src/lang/modules/ja.ts @@ -825,6 +825,8 @@ const message = { image: '画像|画像', imagePull: '引く', imagePush: '押す', + imagePushHelper: + 'このイメージに複数のタグが存在することが検出されました。プッシュ時に使用するイメージ名が以下であることを確認してください:{0}', imageDelete: '画像削除', imageTagDeleteHelper: 'この画像IDに関連付けられた他のタグを削除します', repoName: 'コンテナレジストリ', diff --git a/frontend/src/lang/modules/ko.ts b/frontend/src/lang/modules/ko.ts index 366ad6587..243137980 100644 --- a/frontend/src/lang/modules/ko.ts +++ b/frontend/src/lang/modules/ko.ts @@ -817,6 +817,8 @@ const message = { image: '이미지 | 이미지들', imagePull: '풀', imagePush: '푸시', + imagePushHelper: + '이 이미지에 여러 태그가 있는 것으로 감지되었습니다. 푸시 시 사용할 이미지 이름이 다음인지 확인하세요: {0}', imageDelete: '이미지 삭제', imageTagDeleteHelper: '이 이미지 ID와 관련된 다른 태그를 제거합니다.', repoName: '컨테이너 저장소 이름', diff --git a/frontend/src/lang/modules/ms.ts b/frontend/src/lang/modules/ms.ts index 7826e0c00..f7b482262 100644 --- a/frontend/src/lang/modules/ms.ts +++ b/frontend/src/lang/modules/ms.ts @@ -841,6 +841,8 @@ const message = { image: 'Imej | Imej-imej', imagePull: 'Tarik', imagePush: 'Tekan', + imagePushHelper: + 'Terdapat pengesahan bahawa imej ini mempunyai beberapa tag. Sila pastikan nama imej yang digunakan untuk menolak adalah: {0}', imageDelete: 'Padam imej', imageTagDeleteHelper: 'Buang tag lain yang berkaitan dengan ID imej ini', repoName: 'Pendaftaran kontena', diff --git a/frontend/src/lang/modules/pt-br.ts b/frontend/src/lang/modules/pt-br.ts index 7c0813b63..9aeb2fca0 100644 --- a/frontend/src/lang/modules/pt-br.ts +++ b/frontend/src/lang/modules/pt-br.ts @@ -835,6 +835,8 @@ const message = { image: 'Imagem | Imagens', imagePull: 'Puxar', imagePush: 'Enviar', + imagePushHelper: + 'Detectado que esta imagem possui múltiplas tags. Por favor, confirme que o nome da imagem usada para push é: {0}', imageDelete: 'Excluir imagem', imageTagDeleteHelper: 'Remover outras tags associadas a este ID de imagem', repoName: 'Registro de contêiner', diff --git a/frontend/src/lang/modules/ru.ts b/frontend/src/lang/modules/ru.ts index 6bff763be..d8342f4e7 100644 --- a/frontend/src/lang/modules/ru.ts +++ b/frontend/src/lang/modules/ru.ts @@ -837,6 +837,8 @@ const message = { image: 'Образ | Образы', imagePull: 'Загрузить', imagePush: 'Отправить', + imagePushHelper: + 'Обнаружено, что у этого образа несколько тегов. Подтвердите, что имя образа, используемое для отправки: {0}', imageDelete: 'Удалить образ', imageTagDeleteHelper: 'Удалить другие теги, связанные с этим ID образа', repoName: 'Реестр контейнеров', diff --git a/frontend/src/lang/modules/tr.ts b/frontend/src/lang/modules/tr.ts index fd4c37bef..12d46479a 100644 --- a/frontend/src/lang/modules/tr.ts +++ b/frontend/src/lang/modules/tr.ts @@ -860,6 +860,8 @@ const message = { image: 'İmaj | İmajlar', imagePull: 'Çek', imagePush: 'Gönder', + imagePushHelper: + 'Bu imgenin birden fazla etiketi olduğu tespit edildi. Lütfen gönderimde kullanılan imge adının şu olduğunu onaylayın: {0}', imageDelete: 'İmaj sil', imageTagDeleteHelper: 'Bu imaj IDsi ile ilişkili diğer etiketleri kaldır', repoName: 'Konteyner kayıt defteri', diff --git a/frontend/src/lang/modules/zh-Hant.ts b/frontend/src/lang/modules/zh-Hant.ts index 047ee7beb..981d6c032 100644 --- a/frontend/src/lang/modules/zh-Hant.ts +++ b/frontend/src/lang/modules/zh-Hant.ts @@ -815,6 +815,7 @@ const message = { image: '鏡像', imagePull: '拉取鏡像', imagePush: '推送鏡像', + imagePushHelper: '檢測到該映像存在多個標籤,請確認推送時使用的映像名稱為:{0}', imageDelete: '刪除鏡像', imageTagDeleteHelper: '移除與該映像 ID 相關聯的其他標籤', repoName: '倉庫名', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index fb6e6feda..0cec06a68 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -814,6 +814,7 @@ const message = { image: '镜像', imagePull: '拉取镜像', imagePush: '推送镜像', + imagePushHelper: '检测到该镜像存在多个标签,请确认推送时使用的镜像名称为:{0}', imageDelete: '删除镜像', imageTagDeleteHelper: '移除与该镜像 ID 相关联的其他标签', repoName: '仓库名', diff --git a/frontend/src/views/container/image/push/index.vue b/frontend/src/views/container/image/push/index.vue index b157d104b..8da8aba6b 100644 --- a/frontend/src/views/container/image/push/index.vue +++ b/frontend/src/views/container/image/push/index.vue @@ -2,12 +2,12 @@ - + - + @@ -15,6 +15,9 @@ + + {{ $t('container.imagePushHelper', [loadDetailInfo(form.repoID) + '/' + form.name]) }} + @@ -75,6 +78,11 @@ const emit = defineEmits<{ (e: 'search'): void }>(); type FormInstance = InstanceType; const formRef = ref(); +const handleChange = () => { + let repoURL = loadDetailInfo(form.repoID); + form.name = form.tagName.indexOf(repoURL) !== -1 ? form.tagName.replaceAll(repoURL, '') : form.tagName; +}; + const onSubmit = async (formEl: FormInstance | undefined) => { if (!formEl) return; formEl.validate(async (valid) => {