Skip to content

Commit

Permalink
TF-2084 Fix wrong action title
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui authored and hoangdat committed Dec 6, 2023
1 parent 7e1207d commit 4bb6666
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
enum EmailRuleFilterAction {
moveMessage,
maskAsSeen,
startIt,
starIt,
rejectIt,
markAsSpam,
forwardTo;
Expand All @@ -15,8 +15,8 @@ enum EmailRuleFilterAction {
return AppLocalizations.of(context).moveMessage;
case EmailRuleFilterAction.maskAsSeen:
return AppLocalizations.of(context).maskAsSeen;
case EmailRuleFilterAction.startIt:
return AppLocalizations.of(context).startIt;
case EmailRuleFilterAction.starIt:
return AppLocalizations.of(context).starIt;
case EmailRuleFilterAction.rejectIt:
return AppLocalizations.of(context).rejectIt;
case EmailRuleFilterAction.markAsSpam:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class RuleFilterActionArguments with EquatableMixin {
return MoveMessageActionArguments();
case EmailRuleFilterAction.rejectIt:
return RejectItActionArguments();
case EmailRuleFilterAction.startIt:
case EmailRuleFilterAction.starIt:
return StarItActionArguments();
default:
return EmptyRuleFilterActionArguments();
Expand Down Expand Up @@ -84,7 +84,7 @@ class RejectItActionArguments extends RuleFilterActionArguments {

class StarItActionArguments extends RuleFilterActionArguments {
StarItActionArguments() : super(
action: EmailRuleFilterAction.startIt,
action: EmailRuleFilterAction.starIt,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class RulesFilterCreatorController extends BaseMailboxController {
}
}
if (currentAction.markAsImportant == true) {
EmailRuleFilterAction? action = EmailRuleFilterAction.startIt;
EmailRuleFilterAction? action = EmailRuleFilterAction.starIt;
RuleFilterActionArguments newRuleFilterAction = RuleFilterActionArguments.newAction(action);
listEmailRuleFilterActionSelected.add(newRuleFilterAction);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class RuleFilterActionDetailed extends StatelessWidget {
onChangeAction: forwardEmailOnChangeAction,
);
case EmailRuleFilterAction.maskAsSeen:
case EmailRuleFilterAction.startIt:
case EmailRuleFilterAction.starIt:
case EmailRuleFilterAction.rejectIt:
case EmailRuleFilterAction.markAsSpam:
default:
Expand Down
6 changes: 3 additions & 3 deletions lib/l10n/intl_messages.arb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@@last_modified": "2023-11-16T12:39:33.304952",
"@@last_modified": "2023-12-05T22:37:22.835805",
"initializing_data": "Initializing data...",
"@initializing_data": {
"type": "text",
Expand Down Expand Up @@ -3356,8 +3356,8 @@
"placeholders_order": [],
"placeholders": {}
},
"startIt": "Start it",
"@startIt": {
"starIt": "Star it",
"@starIt": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
Expand Down
6 changes: 3 additions & 3 deletions lib/main/localizations/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3464,10 +3464,10 @@ class AppLocalizations {
);
}

String get startIt {
String get starIt {
return Intl.message(
'Start it',
name: 'startIt',
'Star it',
name: 'starIt',
);
}

Expand Down

0 comments on commit 4bb6666

Please sign in to comment.