From 086d4f1d1c32897f436ff87790864826b778b046 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 29 May 2019 12:15:52 +1200 Subject: [PATCH] feat(containers): hide the attach quick action by default (#2908) * feat(containers): hide the attach quick action by default * fix(containers): add missing display checks for quick actions column * fix(services): add missing showQuickActionAttach property --- .../containerQuickActions.html | 4 ++-- .../containers-datatable/containersDatatable.html | 12 ++++++++---- .../containersDatatableController.js | 5 +++-- .../serviceTasksDatatableController.js | 5 +++-- .../tasks-datatable/tasksDatatableController.js | 3 ++- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/app/docker/components/container-quick-actions/containerQuickActions.html b/app/docker/components/container-quick-actions/containerQuickActions.html index 4bdc54d2a..65ee13949 100644 --- a/app/docker/components/container-quick-actions/containerQuickActions.html +++ b/app/docker/components/container-quick-actions/containerQuickActions.html @@ -41,7 +41,7 @@ @@ -49,7 +49,7 @@ diff --git a/app/docker/components/datatables/containers-datatable/containersDatatable.html b/app/docker/components/datatables/containers-datatable/containersDatatable.html index f1909cd76..86c26ae37 100644 --- a/app/docker/components/datatables/containers-datatable/containersDatatable.html +++ b/app/docker/components/datatables/containers-datatable/containersDatatable.html @@ -70,7 +70,7 @@ -
+
@@ -84,13 +84,17 @@
- +
+
+ + +
@@ -155,7 +159,7 @@
- + Quick actions @@ -223,7 +227,7 @@ {{ item.Status }} {{ item.Status }} - + diff --git a/app/docker/components/datatables/containers-datatable/containersDatatableController.js b/app/docker/components/datatables/containers-datatable/containersDatatableController.js index 09f75e0a9..337f794bc 100644 --- a/app/docker/components/datatables/containers-datatable/containersDatatableController.js +++ b/app/docker/components/datatables/containers-datatable/containersDatatableController.js @@ -24,8 +24,9 @@ function (PaginationService, DatatableService, EndpointProvider) { containerNameTruncateSize: 32, showQuickActionStats: true, showQuickActionLogs: true, - showQuickActionConsole: true, - showQuickActionInspect: true + showQuickActionExec: true, + showQuickActionInspect: true, + showQuickActionAttach: false }; this.filters = { diff --git a/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatableController.js b/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatableController.js index 7a7ba1763..ddd9a0b34 100644 --- a/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatableController.js +++ b/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatableController.js @@ -9,8 +9,9 @@ function (DatatableService) { orderBy: this.orderBy, showQuickActionStats: true, showQuickActionLogs: true, - showQuickActionConsole: true, - showQuickActionInspect: true + showQuickActionExec: true, + showQuickActionInspect: true, + showQuickActionAttach: false }; this.filters = { diff --git a/app/docker/components/datatables/tasks-datatable/tasksDatatableController.js b/app/docker/components/datatables/tasks-datatable/tasksDatatableController.js index 368fa76d2..eabf6202b 100644 --- a/app/docker/components/datatables/tasks-datatable/tasksDatatableController.js +++ b/app/docker/components/datatables/tasks-datatable/tasksDatatableController.js @@ -4,8 +4,9 @@ function (PaginationService, DatatableService) { this.state = { showQuickActionStats: true, showQuickActionLogs: true, - showQuickActionConsole: true, + showQuickActionExec: true, showQuickActionInspect: true, + showQuickActionAttach: false, selectAll: false, orderBy: this.orderBy, paginatedItemLimit: PaginationService.getPaginationLimit(this.tableKey),