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 MagicItem from '@theme/components/MagicItem'
|
||||
import MyMagicItemsButton from '@theme/global-components/MyMagicItemsButton'
|
||||
import Edit from '@theme/components/Edit'
|
||||
import { isResourceInLibrary } from '@theme/util'
|
||||
|
||||
export default {
|
||||
name: 'MagicItemLayout',
|
||||
|
|
@ -31,13 +32,7 @@ export default {
|
|||
|
||||
computed: {
|
||||
isMagicItemInTreasureChest () {
|
||||
let isInTreasureChest = false
|
||||
for (let s of this.$store.state.myMagicItems.magicItems) {
|
||||
if (s.key == this.$page.key) {
|
||||
isInTreasureChest = true
|
||||
}
|
||||
}
|
||||
return isInTreasureChest
|
||||
return isResourceInLibrary(this.$page, this.$store.state.myMagicItems.magicItems)
|
||||
},
|
||||
|
||||
displayToggleMagicItemButton () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue