If a meeting has been cancelled, then mark it as such in the meetings list

This commit is contained in:
QuentinArguillere 2024-09-01 12:22:29 +02:00
parent 22d37cfce9
commit 8261e8d5c1

View file

@ -66,8 +66,14 @@ struct MeetingsFragment: View {
.padding(.top, 5)
.default_text_style_500(styleSize: 15)
}
Text(model.model!.time) // this time string is formatted for the current timezone, we use the selected timezone only when displaying details
.default_text_style_500(styleSize: 15)
if model.model!.confInfo.state != ConferenceInfo.State.Cancelled {
Text(model.model!.time) // this time string is formatted for the current device timezone, we use the selected timezone only when displaying details
.default_text_style_500(styleSize: 15)
} else {
Text("Cancelled")
.foregroundStyle(Color.redDanger500)
.default_text_style_500(styleSize: 15)
}
}
}
.padding(.leading, 30)