From 4da69539f960aa503486e5cb71343ebf16789bb1 Mon Sep 17 00:00:00 2001 From: newcat Date: Tue, 26 Mar 2024 00:17:59 +0100 Subject: [PATCH] Allow deleting points --- src/automation/AutomationEditor.vue | 8 ++++++-- src/automation/automation.libraryItem.ts | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/automation/AutomationEditor.vue b/src/automation/AutomationEditor.vue index 611cb3b..36d923d 100644 --- a/src/automation/AutomationEditor.vue +++ b/src/automation/AutomationEditor.vue @@ -68,7 +68,7 @@ p.id === id) ?? null; } diff --git a/src/automation/automation.libraryItem.ts b/src/automation/automation.libraryItem.ts index 332ecd2..58587d4 100644 --- a/src/automation/automation.libraryItem.ts +++ b/src/automation/automation.libraryItem.ts @@ -42,6 +42,11 @@ export class AutomationLibraryItem extends LibraryItem p.id !== id); + this.events.pointsUpdated.emit(); + } + public sortPoints() { this.points.sort((a, b) => a.unit - b.unit); }