From bcb3f918d19a56cb98ae90f64454f3f607b04258 Mon Sep 17 00:00:00 2001 From: Prabhat Khera <91852476+prabhat-org@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:08:55 +1300 Subject: [PATCH] some minor UI fixes (#10475) --- app/assets/css/bootstrap-override.css | 1 + app/assets/ico/helm.svg | 2 +- .../helm-templates-list.controller.js | 14 ++------------ .../helm-templates-list.html | 19 ++++++++----------- .../views/applications/helm/helm.html | 6 ------ .../HelmRepositoryDatatable.tsx | 4 ++-- 6 files changed, 14 insertions(+), 32 deletions(-) diff --git a/app/assets/css/bootstrap-override.css b/app/assets/css/bootstrap-override.css index d1ae6d68d..4cd78706c 100644 --- a/app/assets/css/bootstrap-override.css +++ b/app/assets/css/bootstrap-override.css @@ -156,6 +156,7 @@ input:checked + .slider:before { background-color: var(--bg-checkbox) !important; border: 1px solid var(--border-checkbox) !important; border-radius: 5px; + color: var(--black-color); } .md-checkbox input[type='checkbox']:disabled + label:before { diff --git a/app/assets/ico/helm.svg b/app/assets/ico/helm.svg index 28043d752..49e470487 100644 --- a/app/assets/ico/helm.svg +++ b/app/assets/ico/helm.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.controller.js b/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.controller.js index 7ab749cbc..cf7998f53 100644 --- a/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.controller.js +++ b/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.controller.js @@ -1,9 +1,8 @@ export default class HelmTemplatesListController { /* @ngInject */ - constructor($async, $scope, DatatableService, HelmService, Notifications) { + constructor($async, $scope, HelmService, Notifications) { this.$async = $async; this.$scope = $scope; - this.DatatableService = DatatableService; this.HelmService = HelmService; this.Notifications = Notifications; @@ -36,10 +35,6 @@ export default class HelmTemplatesListController { }); } - onTextFilterChange() { - this.DatatableService.setDataTableTextFilters(this.tableKey, this.state.textFilter); - } - $onChanges() { if (this.charts.length > 0) { this.updateCategories(); @@ -47,11 +42,6 @@ export default class HelmTemplatesListController { } $onInit() { - return this.$async(async () => { - const textFilter = this.DatatableService.getDataTableTextFilters(this.tableKey); - if (textFilter !== null) { - this.state.textFilter = textFilter; - } - }); + return this.$async(); } } diff --git a/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.html b/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.html index a7795915e..c00a3fb13 100644 --- a/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.html +++ b/app/kubernetes/components/helm/helm-templates/helm-templates-list/helm-templates-list.html @@ -6,15 +6,7 @@