Remove edit and remove icons from adversary and party features (#1919)

This commit is contained in:
Carlos Fernandez 2026-05-23 05:53:44 -04:00 committed by GitHub
parent 53e8da77c6
commit 2931377d53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,7 @@
type='feature' type='feature'
collection=@root.features collection=@root.features
hideContextMenu=true hideContextMenu=true
hideModifyControls=true
canCreate=@root.editable canCreate=@root.editable
showActions=@root.editable showActions=@root.editable
}} }}

View file

@ -9,6 +9,7 @@
type='feature' type='feature'
collection=@root.features collection=@root.features
hideContextMenu=true hideContextMenu=true
hideModifyControls=true
canCreate=@root.editable canCreate=@root.editable
showActions=@root.editable showActions=@root.editable
}} }}

View file

@ -19,6 +19,8 @@ Parameters:
- showLabels {boolean} : If true, show label-tags else show simple tags. - showLabels {boolean} : If true, show label-tags else show simple tags.
- hideTooltip {boolean} : If true, disables the tooltip on the item image. - hideTooltip {boolean} : If true, disables the tooltip on the item image.
- hideControls {boolean} : If true, hides the controls inside inventory-item partials. - hideControls {boolean} : If true, hides the controls inside inventory-item partials.
- hideContextMenu {boolean}: If true, hides the context menu dropdown button
- hideModifyControls {boolean}: If true, hides the edit and delete options
- hideDescription {boolean} : If true, hides the item's description. - hideDescription {boolean} : If true, hides the item's description.
- hideResources {boolean} : If true, hides the item's resources. - hideResources {boolean} : If true, hides the item's resources.
- showActions {boolean} : If true show feature's actions. - showActions {boolean} : If true show feature's actions.
@ -59,6 +61,7 @@ Parameters:
actorType=(ifThen ../actorType ../actorType @root.document.type) actorType=(ifThen ../actorType ../actorType @root.document.type)
hideControls=../hideControls hideControls=../hideControls
hideContextMenu=../hideContextMenu hideContextMenu=../hideContextMenu
hideModifyControls=../hideModifyControls
isActor=../isActor isActor=../isActor
categoryAdversary=../categoryAdversary categoryAdversary=../categoryAdversary
hideTooltip=../hideTooltip hideTooltip=../hideTooltip

View file

@ -12,6 +12,8 @@ Parameters:
- hideTags {boolean} : If true, hide simple-tags else show simple-tags. - hideTags {boolean} : If true, hide simple-tags else show simple-tags.
- hideTooltip {boolean} : If true, disables the tooltip on the item image. - hideTooltip {boolean} : If true, disables the tooltip on the item image.
- hideControls {boolean} : If true, hides the controls inside inventory-item partials. - hideControls {boolean} : If true, hides the controls inside inventory-item partials.
- hideContextMenu {boolean}: If true, hides the context menu dropdown button
- hideModifyControls {boolean}: If true, hides the edit and delete options (todo: swap to show, only party cares to show this)
- hideDescription {boolean} : If true, hides the item's description. - hideDescription {boolean} : If true, hides the item's description.
- hideResources {boolean} : If true, hides the item's resources. - hideResources {boolean} : If true, hides the item's resources.
- showActions {boolean} : If true show feature's actions. - showActions {boolean} : If true show feature's actions.
@ -112,7 +114,7 @@ Parameters:
<a data-action="triggerContextMenu" data-tooltip="DAGGERHEART.UI.Tooltip.moreOptions"> <a data-action="triggerContextMenu" data-tooltip="DAGGERHEART.UI.Tooltip.moreOptions">
<i class="fa-solid fa-fw fa-ellipsis-vertical" inert></i> <i class="fa-solid fa-fw fa-ellipsis-vertical" inert></i>
</a> </a>
{{else if @root.editable}} {{else if (and @root.editable (not hideModifyControls))}}
<a data-action="editDoc" data-tooltip="DAGGERHEART.UI.Tooltip.edit"> <a data-action="editDoc" data-tooltip="DAGGERHEART.UI.Tooltip.edit">
<i class="fa-solid fa-edit" inert></i> <i class="fa-solid fa-edit" inert></i>
</a> </a>