Add delete button for aspects and localize the Edit text

This commit is contained in:
Oliver-Akins 2024-01-19 20:36:24 -07:00
parent 762b297895
commit 69f6d91385
2 changed files with 22 additions and 2 deletions

View file

@ -136,7 +136,11 @@
"used": "Used",
"duration": "Duration: {duration}",
"empty": "You don't have an Aspect yet, add one using the button below or drag one onto your character sheet.",
"add": "Add An Aspect"
"add": "Add An Aspect",
"edit": "Edit",
"aria": {
"delete": "Delete aspect"
}
},
"respawns.header": "Respawns",
"sync.header": "Sync",
@ -245,6 +249,12 @@
"title": "Confirm Spell Deletion",
"content": "Are you sure you would like to delete the spell: {name}<br /><br />This action cannot be undone."
}
},
"aspect": {
"delete": {
"title": "Confirm Aspect Deletion",
"content": "Are you sure you would like to delete the aspect: {name}<br /><br />This action cannot be undone."
}
}
},
"keyword": {

View file

@ -33,7 +33,17 @@
class="confirm"
data-embedded-edit="{{aspect.uuid}}"
>
Edit
{{localize "dotdungeon.actor.pc.aspect.edit"}}
</button>
<button
class="danger equal-padding"
aria-label="{{localize "dotdungeon.actor.pc.aspect.aria.delete"}}"
data-embedded-delete
data-embedded-id="{{aspect.uuid}}"
>
<div aria-hidden="true" class="icon icon--20">
{{{ ../icons.garbage-bin }}}
</div>
</button>
</div>
</div>