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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user