Add character deletion functionality with confirmation workflow
- Added `handleDeleteCharacter` method to handle character deletion with confirmation prompts. - Updated `CharacterComponent` and `CharacterDetail` to include delete button and related logic. - Localized new strings for character deletion (e.g., confirmation prompts, success/error messages). - Enhanced database repository methods (`deleteCharacter`) to handle character deletion securely. - Improved synchronization workflows to accommodate character deletion.
This commit is contained in:
@@ -425,6 +425,8 @@
|
||||
"errorUpdateCharacter": "Error updating character.",
|
||||
"errorAddAttribute": "Error adding attribute.",
|
||||
"errorRemoveAttribute": "Error removing attribute.",
|
||||
"errorDeleteCharacter": "Error deleting character.",
|
||||
"successDelete": "Character deleted successfully.",
|
||||
"enableTool": "Enable characters",
|
||||
"enableToolDescription": "Enable character management for this book.",
|
||||
"toolEnabled": "Character management enabled.",
|
||||
@@ -447,7 +449,9 @@
|
||||
"historyPlaceholder": "Character history...",
|
||||
"roleFull": "Role",
|
||||
"roleFullPlaceholder": "Role of the character in the story",
|
||||
"fetchAttributesError": "Error fetching attributes."
|
||||
"fetchAttributesError": "Error fetching attributes.",
|
||||
"deleteTitle": "Delete character",
|
||||
"deleteMessage": "Are you sure you want to delete {name}? This action cannot be undone."
|
||||
},
|
||||
"characterList": {
|
||||
"search": "Search for a character...",
|
||||
@@ -939,6 +943,7 @@
|
||||
"common": {
|
||||
"cancel": "Cancel",
|
||||
"confirm": "Confirm",
|
||||
"delete": "Delete",
|
||||
"unknownError": "An unknown error occurred",
|
||||
"loading": "Loading..."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user