TF-4236 Implement remove a label from an email when click on the cross on a tag in the opened mail

This commit is contained in:
dab246
2026-01-09 16:37:09 +07:00
committed by Dat H. Pham
parent 3ef66bbbda
commit b37359af03
9 changed files with 145 additions and 11 deletions
@@ -1,6 +1,7 @@
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:labels/model/label.dart';
import 'package:model/email/email_action_type.dart';
import 'package:model/email/presentation_email.dart';
import 'package:tmail_ui_user/features/base/action/ui_action.dart';
@@ -115,4 +116,14 @@ class TriggerMailViewKeyboardShortcutAction extends EmailUIAction {
@override
List<Object?> get props => [actionType, email];
}
}
class RemoveLabelFromEmailAction extends EmailUIAction {
RemoveLabelFromEmailAction(this.emailId, this.label);
final EmailId emailId;
final Label label;
@override
List<Object?> get props => [emailId, label];
}