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 @@ -Helm \ No newline at end of file +Helm \ 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 @@
-
Select the Helm chart to use. Bring further Helm charts into your selection list via User settings - Helm repositories.
+
+
No Helm charts found
Loading...
Initial download of Helm Charts can take a few minutes
diff --git a/app/kubernetes/views/applications/helm/helm.html b/app/kubernetes/views/applications/helm/helm.html index 0e3846c9d..39c866af0 100644 --- a/app/kubernetes/views/applications/helm/helm.html +++ b/app/kubernetes/views/applications/helm/helm.html @@ -20,12 +20,6 @@ Release
-
- -
diff --git a/app/react/portainer/account/AccountView/HelmRepositoryDatatable/HelmRepositoryDatatable.tsx b/app/react/portainer/account/AccountView/HelmRepositoryDatatable/HelmRepositoryDatatable.tsx index 4694a41df..772628b7f 100644 --- a/app/react/portainer/account/AccountView/HelmRepositoryDatatable/HelmRepositoryDatatable.tsx +++ b/app/react/portainer/account/AccountView/HelmRepositoryDatatable/HelmRepositoryDatatable.tsx @@ -1,7 +1,7 @@ import { useMemo } from 'react'; import { useCurrentUser } from '@/react/hooks/useUser'; -import helm from '@/assets/ico/helm.svg?c'; +import helm from '@/assets/ico/vendor/helm.svg?c'; import { Datatable } from '@@/datatables'; import { createPersistedStore } from '@@/datatables/types'; @@ -41,7 +41,7 @@ export function HelmRepositoryDatatable() { return ( row.URL} + getRowId={(row) => String(row.Id)} dataset={helmRepos} settingsManager={tableState} columns={columns}