From 7393d68b7a9a82f798e0dde29a87dc7daf2dc72c Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Tue, 23 Nov 2021 21:42:16 +0200 Subject: [PATCH] feat: add account ability. --- src/containers/Accounts/AccountsActionsBar.js | 30 +++++---- src/containers/Accounts/components.js | 66 +++++++++++-------- .../AccountDrawer/AccountDrawerActionBar.js | 51 ++++++++------ 3 files changed, 85 insertions(+), 62 deletions(-) diff --git a/src/containers/Accounts/AccountsActionsBar.js b/src/containers/Accounts/AccountsActionsBar.js index e96d69c8a..001fb64bf 100644 --- a/src/containers/Accounts/AccountsActionsBar.js +++ b/src/containers/Accounts/AccountsActionsBar.js @@ -15,6 +15,7 @@ import { FormattedMessage as T } from 'components'; import { AdvancedFilterPopover, If, + Can, DashboardActionViewsList, DashboardFilterButton, DashboardRowsHeightButton, @@ -30,6 +31,8 @@ import withAlertActions from 'containers/Alert/withAlertActions'; import withAccountsTableActions from './withAccountsTableActions'; import withSettings from '../Settings/withSettings'; import withSettingsActions from '../Settings/withSettingsActions'; +import { Account_Abilities, AbilitySubject } from '../../common/abilityOption'; + import { compose } from 'utils'; /** @@ -116,13 +119,14 @@ function AccountsActionsBar({ onChange={handleTabChange} /> - -