Skip to content

Commit

Permalink
TF-2084 Hide Forward action
Browse files Browse the repository at this point in the history
 fixup! TF-2084 update EmailRuleFilterAction

 fixup! TF-2084 Add RuleFilterActionArguments

 fixup! TF-2084 Add widget for action row
  • Loading branch information
hieutbui committed Oct 2, 2023
1 parent a111368 commit 6ea36a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import 'package:flutter/cupertino.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';

Expand Down Expand Up @@ -27,4 +25,8 @@ enum EmailRuleFilterAction {
return AppLocalizations.of(context).forwardTo;
}
}

bool getSupported() {
return this != EmailRuleFilterAction.forwardTo;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:equatable/equatable.dart';
import 'package:model/model.dart';
import 'package:model/mailbox/presentation_mailbox.dart';
import 'package:tmail_ui_user/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart';

class RuleFilterActionArguments with EquatableMixin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RuleFilterActionDetailed extends StatelessWidget {
case EmailRuleFilterAction.rejectIt:
case EmailRuleFilterAction.markAsSpam:
default:
return Container();
return const SizedBox.shrink();
}
}
}

0 comments on commit 6ea36a7

Please sign in to comment.