From 00b89f5e53f3faeb2ea0f5942966e98160b49d58 Mon Sep 17 00:00:00 2001 From: xpadev Date: Wed, 18 Oct 2023 17:44:30 +0900 Subject: [PATCH] improve: add default path --- .../remote/remote-comment-picker.tsx | 31 ++++++++++--------- .../remote/remote-movie-picker.tsx | 1 + 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/controller/comment-picker/remote/remote-comment-picker.tsx b/src/controller/comment-picker/remote/remote-comment-picker.tsx index a70b1c1..4819677 100644 --- a/src/controller/comment-picker/remote/remote-comment-picker.tsx +++ b/src/controller/comment-picker/remote/remote-comment-picker.tsx @@ -69,6 +69,7 @@ const RemoteCommentPicker: FC = ({ onChange }) => { options: { filters: [{ name: "xml", extensions: ["xml"] }], properties: ["createDirectory"], + defaultPath: `${nicoId}.xml`, }, }); setIsLoading(false); @@ -104,21 +105,23 @@ const RemoteCommentPicker: FC = ({ onChange }) => { fullWidth={true} /> {metadata && ( - + <> + +
+ +
+ )} -
- -
); }; diff --git a/src/controller/movie-picker/remote/remote-movie-picker.tsx b/src/controller/movie-picker/remote/remote-movie-picker.tsx index 611b632..2c7bfa8 100644 --- a/src/controller/movie-picker/remote/remote-movie-picker.tsx +++ b/src/controller/movie-picker/remote/remote-movie-picker.tsx @@ -94,6 +94,7 @@ const RemoteMoviePicker: FC = ({ onChange }) => { options: { filters: [{ name: "mp4", extensions: ["mp4"] }], properties: ["createDirectory"], + defaultPath: `${nicoId}.mp4`, }, }); setIsLoading(false);