TF-3950 Apply new style for Folder Visibility on web
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import 'package:model/mailbox/expand_mode.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/presentation/mailbox_visibility/mailbox_visibility_controller.dart';
|
||||
|
||||
extension ToggleExpandFoldersExtension on MailboxVisibilityController {
|
||||
void toggleExpandFolders() {
|
||||
final currentExpand = foldersExpandMode.value;
|
||||
if (currentExpand == ExpandMode.COLLAPSE) {
|
||||
foldersExpandMode.value = ExpandMode.EXPAND;
|
||||
} else {
|
||||
foldersExpandMode.value = ExpandMode.COLLAPSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user