diff --git a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html index d601f75f41..5619f8b030 100644 --- a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html +++ b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html @@ -38,10 +38,6 @@ - @@ -120,28 +116,5 @@ - - - - \ No newline at end of file diff --git a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.ts b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.ts index 86f3240f11..eb45505f77 100644 --- a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.ts +++ b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.ts @@ -8,7 +8,6 @@ import { Output, EventEmitter } from "@angular/core"; -import { NgForm } from "@angular/forms"; import { Observable } from "rxjs/Observable"; import "rxjs/add/observable/forkJoin"; @@ -72,16 +71,12 @@ export class ChartVersionComponent implements OnInit { totalCount = 0; currentState: State; - isUploading = false; - isUploadModalOpen = false; chartFile: File; provFile: File; @ViewChild("confirmationDialog") confirmationDialog: ConfirmationDialogComponent; - @ViewChild("chartUploadForm") form: NgForm; - constructor( private errorHandler: ErrorHandler, private translateService: TranslateService, @@ -201,9 +196,6 @@ export class ChartVersionComponent implements OnInit { } ); } - versionUpload() { - this.isUploadModalOpen = true; - } showCard(cardView: boolean) { if (this.isCardView === cardView) { @@ -236,30 +228,6 @@ export class ChartVersionComponent implements OnInit { } } - upload() { - if (!this.chartFile && !this.provFile) { - return; - } - if (this.isUploading) { return; }; - this.isUploading = true; - this.helmChartService - .uploadChart(this.projectName, this.chartFile, this.provFile) - .finally(() => { - this.isUploading = false; - this.isUploadModalOpen = false; - this.refresh(); - let hnd = setInterval(() => this.cdr.markForCheck(), 100); - setTimeout(() => clearInterval(hnd), 3000); - }) - .subscribe( - () => { - this.translateService.get("HELM_CHART.FILE_UPLOADED") - .subscribe(res => this.errorHandler.info(res)); - }, - err => this.errorHandler.error(err) - ); - } - onChartFileChangeEvent(event) { if (event.target.files && event.target.files.length > 0) { this.chartFile = event.target.files[0]; @@ -275,6 +243,7 @@ export class ChartVersionComponent implements OnInit { env.stopPropagation(); this.openVersionDeleteModal([version]); } + openVersionDeleteModal(versions: HelmChartVersion[]) { let versionNames = versions.map(v => v.name).join(","); this.translateService.get("HELM_CHART.DELETE_CHART_VERSION").subscribe(key => {