소스 검색

fix: export logs action

Prateek Sunal 1 년 전
부모
커밋
d9b56a95aa
1개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 15 1
      auth/lib/utils/email_util.dart

+ 15 - 1
auth/lib/utils/email_util.dart

@@ -187,7 +187,21 @@ Future<void> shareLogs(
     ],
   );
   if (result?.action != null && result!.action == ButtonAction.second) {
-    await exportLogs(context, zipFilePath);
+    Future.delayed(
+      const Duration(milliseconds: 200),
+      () => shareDialog(
+        context,
+        context.l10n.exportLogs,
+        saveAction: () async {
+          final zipFilePath = await getZippedLogsFile(context);
+          await exportLogs(context, zipFilePath);
+        },
+        sendAction: () async {
+          final zipFilePath = await getZippedLogsFile(context);
+          await exportLogs(context, zipFilePath, true);
+        },
+      ),
+    );
   }
 }