TF-4050 Preview and download uploaded file in composer on web
This commit is contained in:
@@ -2,7 +2,6 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/id.dart';
|
||||
import 'package:model/email/attachment.dart';
|
||||
import 'package:tmail_ui_user/features/base/action/ui_action.dart';
|
||||
|
||||
class DownloadUIAction extends UIAction {
|
||||
@@ -24,19 +23,10 @@ class UpdateAttachmentsViewStateAction extends DownloadUIAction {
|
||||
List<Object?> get props => [blobId, viewState];
|
||||
}
|
||||
|
||||
class DownloadAttachmentsQuicklyAction extends DownloadUIAction {
|
||||
DownloadAttachmentsQuicklyAction(this.attachment);
|
||||
class OpenComposerFromMailtoLinkAction extends DownloadUIAction {
|
||||
OpenComposerFromMailtoLinkAction(this.uri);
|
||||
|
||||
final Attachment attachment;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [attachment];
|
||||
}
|
||||
|
||||
class OpenMailtoLinkFromPreviewAttachmentAction extends DownloadUIAction {
|
||||
OpenMailtoLinkFromPreviewAttachmentAction(this.uri);
|
||||
|
||||
final Uri? uri;
|
||||
final Uri uri;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [uri];
|
||||
|
||||
Reference in New Issue
Block a user