Allow for newly created request to be edited
This commit is contained in:
parent
50bc1f4eb5
commit
f8b749da0c
|
|
@ -121,6 +121,7 @@ async fn get_event(event_id: Uuid, db_pool: &PgPool) -> String {
|
||||||
|
|
||||||
let event: Result<PgRow, Error> = Ok(sqlx::query(
|
let event: Result<PgRow, Error> = Ok(sqlx::query(
|
||||||
r#"select to_json(json_build_object(
|
r#"select to_json(json_build_object(
|
||||||
|
'id', ce.id,
|
||||||
'title', ce.title,
|
'title', ce.title,
|
||||||
'start', ce.start_time,
|
'start', ce.start_time,
|
||||||
'end', ce.end_time,
|
'end', ce.end_time,
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,7 @@
|
||||||
// Optionally, use the response to add the event to the calendar
|
// Optionally, use the response to add the event to the calendar
|
||||||
$('#eventDetailsModal').modal('hide');
|
$('#eventDetailsModal').modal('hide');
|
||||||
calendar.addEvent({
|
calendar.addEvent({
|
||||||
|
id: data.id,
|
||||||
title: data.title,
|
title: data.title,
|
||||||
start: data.start,
|
start: data.start,
|
||||||
end: data.end,
|
end: data.end,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue