TF-4179 Add Label bar in sidebar

This commit is contained in:
dab246
2025-11-25 17:36:05 +07:00
committed by Dat H. Pham
parent a684051cc9
commit 75f55e6507
6 changed files with 169 additions and 3 deletions
@@ -908,15 +908,19 @@ class MailboxDashBoardController extends ReloadableController
ownEmailAddress: ownEmailAddress.value,
);
final isLabelCapabilitySupported = labelController
.isLabelCapabilitySupported(session, currentAccountId);
if (isLabelCapabilitySupported) {
labelController.injectLabelsBindings();
labelController.getAllLabels(currentAccountId);
}
}
bool get isLabelCapabilitySupported {
if (accountId.value == null || sessionCurrent == null) return false;
return labelController
.isLabelCapabilitySupported(sessionCurrent!, accountId.value!);
}
void _handleMailtoURL(MailtoArguments arguments) {
log('MailboxDashBoardController::_handleMailtoURL:');
routerParameters.value = arguments.toMapRouter();