From 7364b74d2f8b0ad32cf9926524c4f69fc6a0e1f6 Mon Sep 17 00:00:00 2001 From: Andrii Podriez Date: Wed, 18 Sep 2024 13:58:41 +0200 Subject: [PATCH] added pages for usergroups and add usergroup dialog Signed-off-by: Andrii Podriez --- src/app.js | 8 ++ src/branding/branding.js | 1 + src/branding/villasweb/villasweb-values.js | 1 + src/common/menu.js | 14 +++ .../usergroups/dialogs/addUsergroupDialog.js | 117 ++++++++++++++++++ src/pages/usergroups/styles.js | 21 ++++ .../tables/usergroup-scenarios-table.js | 22 ++++ .../tables/usergroup-users-table.js | 22 ++++ src/pages/usergroups/usergroup.js | 46 +++++++ src/pages/usergroups/usergroups.js | 82 ++++++++++++ src/store/apiSlice.js | 23 +++- src/store/endpoints/usergroup-endpoints.js | 31 +++++ 12 files changed, 387 insertions(+), 1 deletion(-) create mode 100644 src/pages/usergroups/dialogs/addUsergroupDialog.js create mode 100644 src/pages/usergroups/styles.js create mode 100644 src/pages/usergroups/tables/usergroup-scenarios-table.js create mode 100644 src/pages/usergroups/tables/usergroup-users-table.js create mode 100644 src/pages/usergroups/usergroup.js create mode 100644 src/pages/usergroups/usergroups.js create mode 100644 src/store/endpoints/usergroup-endpoints.js diff --git a/src/app.js b/src/app.js index 7940505..9456c32 100644 --- a/src/app.js +++ b/src/app.js @@ -37,6 +37,8 @@ import './styles/login.css'; import branding from './branding/branding'; import Logout from './pages/login/logout'; import Infrastructure from './pages/infrastructure/infrastructure'; +import Usergroups from './pages/usergroups/usergroups'; +import Usergroup from './pages/usergroups/usergroup'; import { useSelector } from 'react-redux'; const App = () => { @@ -72,6 +74,12 @@ const App = () => { + + + + + + diff --git a/src/branding/branding.js b/src/branding/branding.js index 2d3bf53..257e7ee 100644 --- a/src/branding/branding.js +++ b/src/branding/branding.js @@ -157,6 +157,7 @@ class Branding { pages.scenarios = true; pages.infrastructure = true; pages.users = true; + pages.usergroups = true; pages.account = true; pages.api = true; diff --git a/src/branding/villasweb/villasweb-values.js b/src/branding/villasweb/villasweb-values.js index 3d23530..f1f368b 100644 --- a/src/branding/villasweb/villasweb-values.js +++ b/src/branding/villasweb/villasweb-values.js @@ -23,6 +23,7 @@ const villasweb_values = { home: true, scenarios: true, infrastructure: true, + usergroups: true, account: true, api: true, }, diff --git a/src/common/menu.js b/src/common/menu.js index b30eb1c..82f82ec 100644 --- a/src/common/menu.js +++ b/src/common/menu.js @@ -99,6 +99,13 @@ const SideBarMenu = (props) => { : '' } +
  • + + Usergroups + +
  • : '' } +
  • + + Usergroups + +