diff --git a/src/pages/rules/EditCharacterRuleBook.vue b/src/pages/rules/EditCharacterRuleBook.vue index 3bd7e80..13c8524 100644 --- a/src/pages/rules/EditCharacterRuleBook.vue +++ b/src/pages/rules/EditCharacterRuleBook.vue @@ -15,7 +15,7 @@ import {isMain, Ledger, LedgerSelect, systemLedger, useLedgersStore} from "@/led type Bindings = { [key: string]: Ledger; }; const ruleBookStore = useRuleBooksStore(); -const {findById: findCharacterRuleBookById} = ruleBookStore; +const {findById: findRuleBookById} = ruleBookStore; const {ruleBooks} = storeToRefs(ruleBookStore); const {findById: findCharacterById} = useCharactersStore(); const {ledgers} = storeToRefs(useLedgersStore()); @@ -33,7 +33,7 @@ watchEffect(async () => { if (characterId) { const characterRuleBook = await findCharacterRuleBookByCharacterId(characterId); - ruleBook.value = findCharacterRuleBookById(characterRuleBook.ruleBookId); + ruleBook.value = findRuleBookById(characterRuleBook.ruleBookId); bindings.value = Object.fromEntries( Object.entries(characterRuleBook.bindings) .map(([key, id]) => [key, ledgersToUse.value.find(l => l.ledgerId === id) ?? systemLedger]) diff --git a/src/pages/rules/ListCharacterRuleBooks.vue b/src/pages/rules/ListCharacterRuleBooks.vue index 431ecbc..dc0ea26 100644 --- a/src/pages/rules/ListCharacterRuleBooks.vue +++ b/src/pages/rules/ListCharacterRuleBooks.vue @@ -1,18 +1,39 @@ - - - + + + {{characterRuleBookView.name}} + \ No newline at end of file