Skip to content

Commit

Permalink
インポート時のダイアログのメッセージを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Jul 28, 2023
1 parent af0f5a6 commit 4379c16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/repository/import_export_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ImportExportRepository extends ChangeNotifier {
builder: (context2) => FolderSelectDialog(
account: account,
fileShowTarget: "miria.json.unknown",
confirmationText: "このフォルダーからインポートする",
),
);
if (folders == null) return;
Expand Down Expand Up @@ -116,6 +117,7 @@ class ImportExportRepository extends ChangeNotifier {
builder: (context2) => FolderSelectDialog(
account: account,
fileShowTarget: "miria.json.unknown",
confirmationText: "このフォルダーに保存する",
),
);
if (folders == null) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import 'package:misskey_dart/misskey_dart.dart';
class FolderSelectDialog extends ConsumerStatefulWidget {
final Account account;
final String? fileShowTarget;
final String confirmationText;

const FolderSelectDialog({
super.key,
required this.account,
required this.fileShowTarget,
required this.confirmationText,
});

@override
Expand All @@ -29,7 +31,7 @@ class FolderSelectDialogState extends ConsumerState<FolderSelectDialog> {
return AlertDialog(
title: Column(
children: [
const Text("フォルダ選択"),
const Text("フォルダー選択"),
Row(
children: [
if (path.isNotEmpty)
Expand Down Expand Up @@ -120,7 +122,7 @@ class FolderSelectDialogState extends ConsumerState<FolderSelectDialog> {
onPressed: () {
Navigator.of(context).pop(path);
},
child: const Text("このフォルダーに保存する"),
child: Text(widget.confirmationText),
)
],
);
Expand Down

0 comments on commit 4379c16

Please sign in to comment.