calendar and vehicle booking rework
This commit is contained in:
@@ -64,6 +64,7 @@ import {
|
||||
} from '@mui/icons-material';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import DashboardLayout from '../components/dashboard/DashboardLayout';
|
||||
import ServiceModePage from '../components/shared/ServiceModePage';
|
||||
import ChatAwareFab from '../components/shared/ChatAwareFab';
|
||||
import { toGermanDateTime, fromGermanDate, fromGermanDateTime } from '../utils/dateInput';
|
||||
|
||||
@@ -1625,7 +1626,7 @@ function VeranstaltungFormDialog({
|
||||
|
||||
export default function Kalender() {
|
||||
const navigate = useNavigate();
|
||||
const { hasPermission } = usePermissionContext();
|
||||
const { hasPermission, isFeatureEnabled } = usePermissionContext();
|
||||
const notification = useNotification();
|
||||
const theme = useTheme();
|
||||
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));
|
||||
@@ -1873,6 +1874,10 @@ export default function Kalender() {
|
||||
|
||||
// ── Render ───────────────────────────────────────────────────────────────────
|
||||
|
||||
if (!isFeatureEnabled('kalender')) {
|
||||
return <ServiceModePage message="Der Kalender befindet sich aktuell im Wartungsmodus." />;
|
||||
}
|
||||
|
||||
return (
|
||||
<DashboardLayout>
|
||||
<Box sx={{ maxWidth: 1100, mx: 'auto' }}>
|
||||
|
||||
Reference in New Issue
Block a user