mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-12-17 07:30:47 +00:00
modification de l'identification des resources plus robuste
This commit is contained in:
parent
0494298159
commit
96d028dfa6
14 changed files with 130 additions and 94 deletions
|
|
@ -18,6 +18,7 @@ import Breadcrumb from '@theme/components/Breadcrumb'
|
|||
import Monster from '@theme/components/Monster'
|
||||
import MyMonstersButton from '@theme/global-components/MyMonstersButton'
|
||||
import Edit from '@theme/components/Edit'
|
||||
import { isResourceInLibrary } from '@theme/util'
|
||||
|
||||
export default {
|
||||
name: 'MonsterLayout',
|
||||
|
|
@ -31,13 +32,7 @@ export default {
|
|||
|
||||
computed: {
|
||||
isMonsterInBestiary () {
|
||||
let isInBestiary = false
|
||||
for (let s of this.$store.state.myMonsters.monsters) {
|
||||
if (s.key == this.$page.key) {
|
||||
isInBestiary = true
|
||||
}
|
||||
}
|
||||
return isInBestiary
|
||||
return isResourceInLibrary(this.$page, this.$store.state.myMonsters.monsters)
|
||||
},
|
||||
|
||||
displayToggleMonsterButton () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue