-
-
- Open Tasks
+ {!!rolesWidgets.length &&
}
+
+
+
+
+ {hasPermission(currentUser, 'READ_USERS') &&
+
+
+
+
+ Users
+
+
+ {users}
+
+
+
+
+
-
{tasks}
-
-
-
-
-
-
- )}
+ }
+
+ {hasPermission(currentUser, 'READ_ROLES') &&
+
+
+
+
+ Roles
+
+
+ {roles}
+
+
+
+
+
+
+
+ }
+
+ {hasPermission(currentUser, 'READ_PERMISSIONS') &&
+
+
+
+
+ Permissions
+
+
+ {permissions}
+
+
+
+
+
+
+
+ }
+
+ {hasPermission(currentUser, 'READ_LEADS') &&
+
+
+
+
+ Leads
+
+
+ {leads}
+
+
+
+
+
+
+
+ }
+
+ {hasPermission(currentUser, 'READ_PROJECTS') &&
+
+
+
+
+ Projects
+
+
+ {projects}
+
+
+
+
+
+
+
+ }
+
+ {hasPermission(currentUser, 'READ_TASKS') &&
+
+
+
+
+ Tasks
+
+
+ {tasks}
+
+
+
+
+
+
+
+ }
+
+ {hasPermission(currentUser, 'READ_COMMENTS') &&
+
+
+
+
+ Comments
+
+
+ {comments}
+
+
+
+
+
+
+
+ }
+
+ {hasPermission(currentUser, 'READ_ATTACHMENTS') &&
+
+
+
+
+ Attachments
+
+
+ {attachments}
+
+
+
+
+
+
+
+ }
+
+
>
@@ -161,4 +379,3 @@ Dashboard.getLayout = function getLayout(page: ReactElement) {
}
export default Dashboard
-
diff --git a/frontend/src/pages/leads/kanban.tsx b/frontend/src/pages/leads/kanban.tsx
deleted file mode 100644
index 82e0010..0000000
--- a/frontend/src/pages/leads/kanban.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import { mdiChartTimelineVariant } from '@mdi/js'
-import Head from 'next/head'
-import React, { ReactElement } from 'react'
-import CardBox from '../../components/CardBox'
-import LayoutAuthenticated from '../../layouts/Authenticated'
-import SectionMain from '../../components/SectionMain'
-import SectionTitleLineWithButton from '../../components/SectionTitleLineWithButton'
-import { getPageTitle } from '../../config'
-import BaseButton from '../../components/BaseButton'
-import { useAppSelector } from '../../stores/hooks'
-import { hasPermission } from '../../helpers/userPermissions'
-import KanbanBoard from '../../components/KanbanBoard/KanbanBoard'
-import Link from 'next/link'
-import { deleteItem, update } from '../../stores/leads/leadsSlice'
-
-const LeadsKanbanPage = () => {
- const { currentUser } = useAppSelector((state) => state.auth)
- const hasCreatePermission = currentUser && hasPermission(currentUser, 'CREATE_LEADS')
-
- const columns = [
- { id: 'New', label: 'New' },
- { id: 'Contacted', label: 'Contacted' },
- { id: 'Qualified', label: 'Qualified' },
- { id: 'Proposal', label: 'Proposal' },
- { id: 'Converted', label: 'Converted' },
- { id: 'Lost', label: 'Lost' },
- ]
-
- return (
- <>
-
-
{getPageTitle('Leads Kanban')}
-
-
-
- {''}
-
-
-
- {hasCreatePermission && }
-
- Switch to List
-
-
-
-
-
- >
- )
-}
-
-LeadsKanbanPage.getLayout = function getLayout(page: ReactElement) {
- return
{page}
-}
-
-export default LeadsKanbanPage
diff --git a/frontend/src/pages/leads/list.tsx b/frontend/src/pages/leads/leads-list.tsx
similarity index 98%
rename from frontend/src/pages/leads/list.tsx
rename to frontend/src/pages/leads/leads-list.tsx
index 53df185..1f0e07e 100644
--- a/frontend/src/pages/leads/list.tsx
+++ b/frontend/src/pages/leads/leads-list.tsx
@@ -117,7 +117,7 @@ const LeadsTablesPage = () => {
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index 1695dab..c75b32b 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -68,7 +68,7 @@ module.exports = {
pastelEmeraldTheme: {
- text: '#030A0D',
+ text: '#515564',
iconsColor: '#030A0D',
mainBG: '#DFECF2',
buttonColor: '#030A0D',