diff --git a/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.ts b/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.ts index 039b2a6e6..238ce5079 100644 --- a/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.ts +++ b/src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.ts @@ -716,7 +716,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy { retag() { if (this.selectedRow && this.selectedRow.length && !this.depth) { this.retagDialogOpened = true; - this.imageNameInput.imageNameForm.reset(); + this.imageNameInput.imageNameForm.reset({repoName: this.repoName}); this.retagSrcImage = this.repoName + ":" + this.selectedRow[0].digest; } } diff --git a/src/portal/src/app/shared/components/image-name-input/image-name-input.component.html b/src/portal/src/app/shared/components/image-name-input/image-name-input.component.html index e9c44b03f..959e01627 100644 --- a/src/portal/src/app/shared/components/image-name-input/image-name-input.component.html +++ b/src/portal/src/app/shared/components/image-name-input/image-name-input.component.html @@ -10,7 +10,7 @@ (keyup)='validateProjectName()' formControlName="projectName" autocomplete="off" /> -
+