* Add folder info when open mail list from Label (cherry picked from commit de0bb4ee02030ca90126766a8713a6826d791acd) * Add unit test for `hasMailboxLabel` function in BaseEmailItemTile mixin (cherry picked from commit 18f8d1847acccd6f95006b93903f0caa6c0408df) * TF-4292 Add E2E test for test case `Add folder info when open mail list from Label` on mobile (cherry picked from commit 1c209e333510db161522e4449ad7fb2e5d28399f)
This commit is contained in:
@@ -15,6 +15,7 @@ import 'package:tmail_ui_user/features/labels/presentation/models/label_action_t
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/extensions/handle_label_action_type_extension.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/extensions/handle_mailbox_action_extension.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/extensions/open_app_grid_extension.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/extensions/presentation_mailbox_extension.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/extensions/toggle_expand_folders_extension.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/mailbox_controller.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/model/mailbox_categories.dart';
|
||||
@@ -406,8 +407,8 @@ abstract class BaseMailboxView extends GetWidget<MailboxController>
|
||||
|
||||
final selectedMailbox = dashboardController.selectedMailbox.value;
|
||||
Id? labelIdSelected;
|
||||
if (selectedMailbox is PresentationLabelMailbox) {
|
||||
labelIdSelected = selectedMailbox.id.id;
|
||||
if (selectedMailbox?.isLabelMailbox == true) {
|
||||
labelIdSelected = selectedMailbox?.labelId;
|
||||
}
|
||||
|
||||
if (isLabelAvailable) {
|
||||
|
||||
@@ -17,7 +17,7 @@ import 'package:tmail_ui_user/main/routes/route_utils.dart';
|
||||
extension PresentationMailboxExtension on PresentationMailbox {
|
||||
|
||||
String getDisplayName(BuildContext context) {
|
||||
if (this is PresentationLabelMailbox) {
|
||||
if (isLabelMailbox) {
|
||||
return (this as PresentationLabelMailbox).label.safeDisplayName;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
}
|
||||
|
||||
String getDisplayNameWithoutContext(AppLocalizations appLocalizations) {
|
||||
if (this is PresentationLabelMailbox) {
|
||||
if (isLabelMailbox) {
|
||||
return (this as PresentationLabelMailbox).label.safeDisplayName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user