mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Use undo notification when deleting a card or badge (#22414)
* Use undo notification instead of confirmation dialog for cards and badges * Fix notifications * Improve deletion functions * Fix errors * Fix startup notifications * Add translation and simplify delete method * Apply suggestions from code review Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com> * Prettier * Update src/panels/lovelace/editor/delete-badge.ts --------- Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>
This commit is contained in:
@@ -45,6 +45,7 @@ class HcLovelace extends LitElement {
|
||||
saveConfig: async () => undefined,
|
||||
deleteConfig: async () => undefined,
|
||||
setEditMode: () => undefined,
|
||||
showToast: () => undefined,
|
||||
};
|
||||
return html`
|
||||
<hui-view
|
||||
|
||||
Reference in New Issue
Block a user