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