From 68851aada4f174faecd6f88a8747218b2ee50a05 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Wed, 19 Aug 2020 02:50:16 +0300 Subject: [PATCH] fix(containers): persist column settings (#4234) * feat(containers): remove ip column * fix(containers): persist column settings --- .../containersDatatable.html | 63 ++++++++++++++----- .../containersDatatableController.js | 8 +-- 2 files changed, 50 insertions(+), 21 deletions(-) diff --git a/app/docker/components/datatables/containers-datatable/containersDatatable.html b/app/docker/components/datatables/containers-datatable/containersDatatable.html index 72e7e4a11..9ba136c4c 100644 --- a/app/docker/components/datatables/containers-datatable/containersDatatable.html +++ b/app/docker/components/datatables/containers-datatable/containersDatatable.html @@ -20,48 +20,81 @@
Close
-
- Close -
diff --git a/app/docker/components/datatables/containers-datatable/containersDatatableController.js b/app/docker/components/datatables/containers-datatable/containersDatatableController.js index aeb098889..cc02ab678 100644 --- a/app/docker/components/datatables/containers-datatable/containersDatatableController.js +++ b/app/docker/components/datatables/containers-datatable/containersDatatableController.js @@ -60,10 +60,6 @@ angular.module('portainer.docker').controller('ContainersDatatableController', [ label: 'Created', display: true, }, - ip: { - label: 'IP Address', - display: true, - }, host: { label: 'Host', display: true, @@ -79,8 +75,8 @@ angular.module('portainer.docker').controller('ContainersDatatableController', [ }, }; - this.onColumnVisibilityChange = function () { - DatatableService.setColumnVisibilitySettings(this.tableKey, this.columnVisibility); + this.onColumnVisibilityChange = function (columnVisibility) { + DatatableService.setColumnVisibilitySettings(this.tableKey, columnVisibility); }; this.onSelectionChanged = function () {