TF-4404 Keep automation keys stable across enum renames.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user