From 69f6d91385e56758cc9c91aed4188acd5c1f532f Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 19 Jan 2024 20:36:24 -0700 Subject: [PATCH] Add delete button for aspects and localize the Edit text --- langs/en-ca.json | 12 +++++++++++- templates/actors/char-sheet-mvp/panels/aspect.pc.hbs | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/langs/en-ca.json b/langs/en-ca.json index 598ae62..cf6e90f 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -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}

This action cannot be undone." } + }, + "aspect": { + "delete": { + "title": "Confirm Aspect Deletion", + "content": "Are you sure you would like to delete the aspect: {name}

This action cannot be undone." + } } }, "keyword": { diff --git a/templates/actors/char-sheet-mvp/panels/aspect.pc.hbs b/templates/actors/char-sheet-mvp/panels/aspect.pc.hbs index 42cf1f8..4ba72b8 100644 --- a/templates/actors/char-sheet-mvp/panels/aspect.pc.hbs +++ b/templates/actors/char-sheet-mvp/panels/aspect.pc.hbs @@ -33,7 +33,17 @@ class="confirm" data-embedded-edit="{{aspect.uuid}}" > - Edit + {{localize "dotdungeon.actor.pc.aspect.edit"}} + +