TF-2628 Disable view attachment in mobile web (#2733)
This commit is contained in:
@@ -109,7 +109,9 @@ class EmailAttachmentsWidget extends StatelessWidget {
|
||||
onDragStarted: onDragStarted,
|
||||
onDragEnd: onDragEnd,
|
||||
downloadAttachmentAction: downloadAttachmentAction,
|
||||
viewAttachmentAction: viewAttachmentAction,
|
||||
viewAttachmentAction: PlatformInfo.isCanvasKit
|
||||
? viewAttachmentAction
|
||||
: null,
|
||||
);
|
||||
} else {
|
||||
return AttachmentItemWidget(
|
||||
|
||||
@@ -99,7 +99,7 @@ class EmailViewAppBarWidget extends StatelessWidget {
|
||||
presentationEmail.hasStarred ? EmailActionType.unMarkAsStarred : EmailActionType.markAsStarred
|
||||
)
|
||||
),
|
||||
if (PlatformInfo.isWeb)
|
||||
if (PlatformInfo.isWeb && PlatformInfo.isCanvasKit)
|
||||
...[
|
||||
const SizedBox(width: EmailViewAppBarWidgetStyles.space),
|
||||
TMailButtonWidget.fromIcon(
|
||||
|
||||
Reference in New Issue
Block a user