* Delete a saved view
(viewId: string)
| 288 | * Delete a saved view |
| 289 | */ |
| 290 | deleteView(viewId: string): void { |
| 291 | const viewIndex = this.savedViews.findIndex((v) => v.id === viewId); |
| 292 | if (viewIndex === -1) { |
| 293 | throw new Error(`Saved view with ID ${viewId} not found`); |
| 294 | } |
| 295 | |
| 296 | this.savedViews.splice(viewIndex, 1); |
| 297 | void this.saveSavedViewsToPluginData(); |
| 298 | this.emit("saved-views-changed", this.getSavedViews()); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Get a saved view by ID |
nothing calls this directly
no test coverage detected