1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-18 22:04:05 +00:00

Moved editors and grid components to their own directories

This commit is contained in:
2023-08-07 16:59:22 +02:00
parent f33cac7f5c
commit 5b15782d7d
25 changed files with 30 additions and 29 deletions

View File

@ -0,0 +1,19 @@
<script>
import { OpenDirectory } from '$wails/go/ui/UI';
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>