TF-4179 Add Label bar in sidebar
This commit is contained in:
+7
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user