Lib: Reorder card scripts

This commit is contained in:
2025-02-06 23:09:40 +01:00
parent bbd700f755
commit 76a5388e18
4 changed files with 56 additions and 54 deletions

View File

@ -31,10 +31,12 @@
driver = meta.driver;
}
const required: boolean = $derived(!driver);
const disabled: boolean = $derived(!data.admin);
// Constants
const labelwidth: string = "120px";
// Reactive state
let required: boolean = $derived(!driver);
let disabled: boolean = $derived(!data.admin);
let team_select_value: string = $state(driver?.team ?? "");
let active_value: boolean = $state(driver?.active ?? true);
</script>