TF-4404 Keep automation keys stable across enum renames.

This commit is contained in:
dab246
2026-03-25 11:34:12 +07:00
committed by Dat H. Pham
parent b97abfbf69
commit 0a88a8f109
3 changed files with 30 additions and 2 deletions
@@ -24,7 +24,20 @@ enum EventActionType {
}
}
Key getKeyButton() => Key('${name}_event_action_button');
Key getKeyButton() {
switch (this) {
case EventActionType.yes:
return const Key('yes_event_action_button');
case EventActionType.acceptCounter:
return const Key('acceptCounter_event_action_button');
case EventActionType.maybe:
return const Key('maybe_event_action_button');
case EventActionType.no:
return const Key('no_event_action_button');
case EventActionType.mailToAttendees:
return const Key('mailToAttendees_event_action_button');
}
}
String getToastMessageSuccess(BuildContext context) {
switch(this) {