From b80fcb04678a1bbfd737c1e00e2e5c381ef14928 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Wed, 11 Oct 2023 10:24:35 +0300 Subject: [PATCH] fix(docker/stacks): show orphaned stacks option [EE-6149] (#10346) --- .../StacksDatatable/TableSettingsMenus.tsx | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/app/react/docker/stacks/ListView/StacksDatatable/TableSettingsMenus.tsx b/app/react/docker/stacks/ListView/StacksDatatable/TableSettingsMenus.tsx index 1d0aed335..079ce540c 100644 --- a/app/react/docker/stacks/ListView/StacksDatatable/TableSettingsMenus.tsx +++ b/app/react/docker/stacks/ListView/StacksDatatable/TableSettingsMenus.tsx @@ -1,7 +1,6 @@ import { Table } from '@tanstack/react-table'; import { Authorized } from '@/react/hooks/useUser'; -import { isBE } from '@/react/portainer/feature-flags/feature-flags.service'; import { ColumnVisibilityMenu } from '@@/datatables/ColumnVisibilityMenu'; import { TableSettingsMenu } from '@@/datatables'; @@ -35,22 +34,21 @@ export function TableSettingsMenus({ value={tableState.hiddenColumns} /> - {isBE && ( - - { - tableState.setShowOrphanedStacks(e.target.checked); - tableInstance.setGlobalFilter((filter: object) => ({ - ...filter, - showOrphanedStacks: e.target.checked, - })); - }} - /> - - )} + + { + tableState.setShowOrphanedStacks(e.target.checked); + tableInstance.setGlobalFilter((filter: object) => ({ + ...filter, + showOrphanedStacks: e.target.checked, + })); + }} + /> + + tableState.setAutoRefreshRate(value)}