mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-16 21:14:05 +00:00
Export/dump... wip
This commit is contained in:
19
frontend/src/components/directorychooser.svelte
Normal file
19
frontend/src/components/directorychooser.svelte
Normal file
@ -0,0 +1,19 @@
|
||||
<script>
|
||||
import { OpenDirectory } from '../../wailsjs/go/app/App';
|
||||
|
||||
export let value = '';
|
||||
export let id = '';
|
||||
export let title = 'Choose a directory';
|
||||
|
||||
async function selectDir() {
|
||||
value = await OpenDirectory(title) || value;
|
||||
}
|
||||
</script>
|
||||
|
||||
<input type="text" on:pointerdown={selectDir} readonly {id} {value} />
|
||||
|
||||
<style>
|
||||
input {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user