Add note deletion and removal from history modals (#299)

* Fix history element's entry menu deletion button

The note deletion button inside the EntryMenu of a history element has one button to remove the note from the user's history and one to delete the note from the system. Both buttons pointed to the history-removal.

* Added modals for note deletion and note from history removal

* Removed redundant code

* Added CHANGELOG entry

* Added note title in deletion/removal prompts

* Refactored DeleteNoteItem and RemoveNoteEntryItem into one common component

* Refactored DeleteRemoveNoteItem-component and added two composition components

* Redesigned modal dialog to make the note title more clearly readable

* Renamed the generic dropdown-with-deletion-modal-component
This commit is contained in:
Erik Michelson 2020-07-01 23:28:49 +02:00 committed by GitHub
parent b23a73ac51
commit e1e8a76fda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 136 additions and 43 deletions

View file

@ -70,6 +70,12 @@
"textWithFile": "While trying to import history from '{{fileName}}' an error occurred.",
"textWithoutFile": "You did not provide any files to upload the history from.",
"tooNewVersion": "The file '{{fileName}}' comes from a newer client and can't be imported."
},
"removeNote": {
"title": "Remove note from history",
"question": "Do you really want to remove this note from your history?",
"warning": "This just removes the history entry and won't delete the note itself.",
"button": "Remove note from history"
}
},
"tableHeader": {
@ -252,7 +258,8 @@
"deleteNote": {
"title": "Delete note",
"question": "Do you really want to delete this note?",
"warning": "All users will lose their connection."
"warning": "All users will lose their connection. This process is irreversible.",
"button": "Delete note"
}
},
"embeddings": {