+
diff --git a/opencti-platform/opencti-front/src/private/components/workspaces/dashboards/Dashboard.jsx b/opencti-platform/opencti-front/src/private/components/workspaces/dashboards/Dashboard.jsx
index 2493a7f02b98..e6bdb4263fe7 100644
--- a/opencti-platform/opencti-front/src/private/components/workspaces/dashboards/Dashboard.jsx
+++ b/opencti-platform/opencti-front/src/private/components/workspaces/dashboards/Dashboard.jsx
@@ -5,6 +5,7 @@ import RGL, { WidthProvider } from 'react-grid-layout';
import Paper from '@mui/material/Paper';
import makeStyles from '@mui/styles/makeStyles';
import { v4 as uuid } from 'uuid';
+import DashboardTimeFilters from './DashboardTimeFilters';
import StixCoreObjectsPolarArea from '../../common/stix_core_objects/StixCoreObjectsPolarArea';
import StixRelationshipsPolarArea from '../../common/stix_relationships/StixRelationshipsPolarArea';
import { computerRelativeDate, dayStartDate, parse } from '../../../../utils/Time';
@@ -89,6 +90,8 @@ const DashboardComponent = ({ workspace, noToolbar }) => {
const ReactGridLayout = useMemo(() => WidthProvider(RGL), []);
const classes = useStyles();
const { isFeatureEnable } = useHelper();
+ const isFABReplaced = isFeatureEnable('FAB_REPLACEMENT');
+
useEffect(() => {
const timeout = setTimeout(() => {
window.dispatchEvent(new Event('resize'));
@@ -799,13 +802,24 @@ const DashboardComponent = ({ workspace, noToolbar }) => {
}}
>
{!noToolbar && (
-
+ <>
+
+ {isFABReplaced && (
+
+
+
+ )}
+ >
)}
{isExploreUpdater && userCanEdit ? (
{
})}
)}
- {!noToolbar && userCanEdit && !isFeatureEnable('FAB_REPLACEMENT') &&
}
+ {!noToolbar && userCanEdit && !isFABReplaced &&
}
);
};
diff --git a/opencti-platform/opencti-front/src/private/components/workspaces/dashboards/DashboardTimeFilters.tsx b/opencti-platform/opencti-front/src/private/components/workspaces/dashboards/DashboardTimeFilters.tsx
new file mode 100644
index 000000000000..9bcfa57aebdc
--- /dev/null
+++ b/opencti-platform/opencti-front/src/private/components/workspaces/dashboards/DashboardTimeFilters.tsx
@@ -0,0 +1,93 @@
+import React from 'react';
+import FormControl from '@mui/material/FormControl';
+import InputLabel from '@mui/material/InputLabel';
+import Select from '@mui/material/Select';
+import MenuItem from '@mui/material/MenuItem';
+import { DatePicker } from '@mui/x-date-pickers/DatePicker';
+import { EXPLORE_EXUPDATE, INVESTIGATION_INUPDATE } from '../../../../utils/hooks/useGranted';
+import Security from '../../../../utils/Security';
+import { useFormatter } from '../../../../components/i18n';
+import { useGetCurrentUserAccessRight } from '../../../../utils/authorizedMembers';
+import { Dashboard_workspace$data } from './__generated__/Dashboard_workspace.graphql';
+
+interface DashboardTimeFiltersProps {
+ workspace: Dashboard_workspace$data
+ config?: {
+ startDate: object
+ endDate: object
+ relativeDate: string
+ }
+ handleDateChange: (bound: 'startDate' | 'endDate' | 'relativeDate', value: object | string | null) => unknown
+}
+
+const DashboardTimeFilters: React.FC