mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Edit option is now always shown on compendium actions (#423)
This commit is contained in:
parent
e98adc55b7
commit
5cd9075732
4 changed files with 5 additions and 4 deletions
|
|
@ -305,7 +305,7 @@ export default function DHApplicationMixin(Base) {
|
|||
icon: 'fa-solid fa-pen-to-square',
|
||||
condition: target => {
|
||||
const doc = getDocFromElementSync(target);
|
||||
return doc && (!doc.hasOwnProperty('systemPath') || doc.inCollection);
|
||||
return !doc || !doc.hasOwnProperty('systemPath') || doc.inCollection;
|
||||
},
|
||||
callback: async target => (await getDocFromElement(target)).sheet.render({ force: true })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue