working with UI library now
This commit is contained in:
@@ -50,7 +50,10 @@ pub struct Cell {
|
||||
pub booked: bool,
|
||||
pub color: String,
|
||||
pub booking_id: i32,
|
||||
/// Private — admin only. Never rendered on the public calendar.
|
||||
pub name: String,
|
||||
/// Public-facing label shown on the calendar when set.
|
||||
pub title: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
@@ -173,6 +176,7 @@ pub async fn build_calendar(
|
||||
color: b.color.clone(),
|
||||
booking_id: b.id,
|
||||
name: b.name.clone(),
|
||||
title: b.title.clone().unwrap_or_default(),
|
||||
},
|
||||
None => Cell {
|
||||
date: iso,
|
||||
@@ -181,6 +185,7 @@ pub async fn build_calendar(
|
||||
color: String::new(),
|
||||
booking_id: 0,
|
||||
name: String::new(),
|
||||
title: String::new(),
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user