TF-2812 Calendar event accept integrate UI

This commit is contained in:
DatDang
2024-04-17 14:18:33 +07:00
committed by Dat H. Pham
parent 94d683c3c1
commit f36164f807
7 changed files with 40 additions and 12 deletions
@@ -145,7 +145,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
EmailLoaded? get currentEmailLoaded => _currentEmailLoaded;
bool get calendarEventProcessing => viewState.value is CalendarEventReplying;
bool get calendarEventProcessing => viewState.value.fold(
(failure) => false,
(success) => success is CalendarEventReplying);
CalendarEvent? get calendarEvent => blobCalendarEvent.value?.calendarEventList.firstOrNull;
Id? get _displayingEventBlobId => blobCalendarEvent.value?.blobId;
@@ -1684,8 +1686,8 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
);
}
void onCalendarEventReplyAction(EventAction eventAction) {
switch (eventAction.actionType) {
void onCalendarEventReplyAction(EventActionType eventActionType) {
switch (eventActionType) {
case EventActionType.yes:
_acceptCalendarEventAction();
break;