Add delete button for aspects and localize the Edit text
This commit is contained in:
parent
762b297895
commit
69f6d91385
2 changed files with 22 additions and 2 deletions
|
|
@ -136,7 +136,11 @@
|
||||||
"used": "Used",
|
"used": "Used",
|
||||||
"duration": "Duration: {duration}",
|
"duration": "Duration: {duration}",
|
||||||
"empty": "You don't have an Aspect yet, add one using the button below or drag one onto your character sheet.",
|
"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",
|
"respawns.header": "Respawns",
|
||||||
"sync.header": "Sync",
|
"sync.header": "Sync",
|
||||||
|
|
@ -245,6 +249,12 @@
|
||||||
"title": "Confirm Spell Deletion",
|
"title": "Confirm Spell Deletion",
|
||||||
"content": "Are you sure you would like to delete the spell: {name}<br /><br />This action cannot be undone."
|
"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": {
|
"keyword": {
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,17 @@
|
||||||
class="confirm"
|
class="confirm"
|
||||||
data-embedded-edit="{{aspect.uuid}}"
|
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>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue