This commit is contained in:
@@ -218,7 +218,15 @@ const EventsList = () => {
|
||||
|
||||
const goToCreateNew = () => {
|
||||
if (!AuthService.canEditMedicalEvents()) return;
|
||||
navigate(`/medical/events`)
|
||||
const seedEvent = {
|
||||
data: {},
|
||||
type: 'medical',
|
||||
status: 'active',
|
||||
start_time: new Date(),
|
||||
stop_time: new Date(),
|
||||
edit_history: []
|
||||
};
|
||||
navigate(`/medical/events/create-from-request?event=${encodeURIComponent(JSON.stringify(seedEvent))}`);
|
||||
}
|
||||
|
||||
const goToEventsCalendar = () => {
|
||||
|
||||
@@ -355,7 +355,15 @@ const EventsMultipleList = () => {
|
||||
|
||||
const goToCreateNew = () => {
|
||||
if (!AuthService.canEditMedicalEvents()) return;
|
||||
navigate(`/medical/events`)
|
||||
const seedEvent = {
|
||||
data: {},
|
||||
type: 'medical',
|
||||
status: 'active',
|
||||
start_time: new Date(),
|
||||
stop_time: new Date(),
|
||||
edit_history: []
|
||||
};
|
||||
navigate(`/medical/events/create-from-request?event=${encodeURIComponent(JSON.stringify(seedEvent))}`);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user