TF-4301 Add "Create a new label" button in Label As menus and wire up tagging in email view

This commit is contained in:
dab246
2026-02-04 13:53:01 +07:00
committed by Dat H. Pham
parent 061793846e
commit 190ccc7bc3
29 changed files with 600 additions and 247 deletions
@@ -952,9 +952,15 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
pressEmailAction(actionType, presentationEmail);
break;
case EmailActionType.labelAs:
if (!isLabelAvailable) return;
mailboxDashBoardController
.openAddLabelToEmailDialogModal(presentationEmail);
mailboxDashBoardController.openAddLabelToEmailDialogModal(
email: presentationEmail,
onCreateANewLabelAction: () {
mailboxDashBoardController.labelController.onCreateALabelAction(
accountId: accountId,
shouldPop: true,
);
},
);
break;
default:
break;