Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Commit 5017762

Browse files
author
Leonardo Chaia
committed
fix: do not append latest tag to what you type
1 parent db02124 commit 5017762

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: src/app/daemon-tools/docker-jobs.service.ts

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export class DockerJobsService {
1616
private jobDetails: JobDetailsService) { }
1717

1818
public pullImage(image: string, openDetails = true) {
19+
if (!image.includes(':')) {
20+
image += ':latest';
21+
}
1922
const params = new PullImageJobParams(image);
2023
const job = this.jobRunner.startJob<PullImageJob, void, PullImageJobProgress>(PullImageJob, {
2124
provide: PullImageJobParams,

Diff for: src/app/daemon-tools/image-selector-card/image-selector-card.component.ts

-4
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ export class ImageSelectorCardComponent implements OnInit, OnDestroy, ControlVal
128128

129129
private triggerOnChanges() {
130130
if (this.onChanges) {
131-
if (!this.image.includes(':')) {
132-
this.image += ':latest';
133-
}
134-
135131
this.onChanges(this.image);
136132
}
137133
}

0 commit comments

Comments
 (0)