TF-3758 Allow Folders to be expandable
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
|
||||
import 'package:model/mailbox/expand_mode.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/mailbox_controller.dart';
|
||||
|
||||
extension ToggleExpandFoldersExtension on MailboxController {
|
||||
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