fix things

This commit is contained in:
Sirttas
2026-06-04 11:12:26 +02:00
parent 5da9003b14
commit af3b26a273
4 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ const ledgersToUse = computed(() => [systemLedger, ...ledgers.value.filter(isMai
const character = ref<Character>();
const ruleBook = ref<RuleBook>();
const bindings = ref<Bindings>({});
const ledgerRefs = computed<string[]>(() => ruleBook.value?.ledgerRefs ?? [])
watchEffect(async () => {
const characterId = character.value?.characterId;
@@ -85,7 +86,7 @@ watch(useRoute(), async route => {
<div class="flex-col border-b-1">
Ledger Bindings:
<div class="flex flex-wrap items-center mb-2 mt-2">
<div class="me-2" v-for="ref in ruleBook.ledgerRefs" :ref="ref">
<div class="me-2" v-for="ref in ledgerRefs" :ref="ref">
<span class="me-1">{{ref}}:</span>
<LedgerSelect :ledgers="ledgersToUse" :modelValue="bindings[ref] ?? systemLedger" @update:modelValue="value => bindings[ref] = value" />
</div>