-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3点の変更: - [x] `alert()` の代わりに、Tauriのdialogを利用 - [x] 選択したフォルダにGMLファイルが一つもない時、その時点でダイアログ通知 - [x] 入力, 出力にクリアボタン `(x)` を追加 ## `alert()` の代わりに、Tauriのdialogを利用 参考: [dialog | Tauri Apps](https://tauri.app/v1/api/js/dialog/) レベルを指定できる(info, warning, error)。 だが、見た目はwarningでも変わらない: <img width="372" alt="image" src="https://github.com/MIERUNE/PLATEAU-GIS-Converter/assets/595008/10eee21b-1615-4a52-b13c-87aa8509deac"> errorだと少し変わる: <img width="372" alt="image" src="https://github.com/MIERUNE/PLATEAU-GIS-Converter/assets/595008/62776c0b-fbab-4976-9eb4-ad22ca396015"> ## 選択したフォルダにGMLファイルが一つもない時、その時点でダイアログ通知  ## 入力, 出力にクリアボタン `(x)` を追加 これまで「属性マッピングルール」にはあったが、入力・出力にはなかった。  <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **新機能** - 選択したフォルダにGMLファイルが見つからない場合、警告メッセージを表示するチェックを追加し、ファイルが存在しない場合は `inputFolders` をリセットしました。 - `outputPath` 変数を空の文字列にリセットする `clearSelected` 関数を追加しました。UIを更新して、この関数を呼び出して選択した出力パスをクリアするボタンを追加しました。 <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
3 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters