LibraryPanels: Prevents deletion of connected library panels (#32277)

* LibraryPanels: Prevents deletion of connected library panels

* Refactor: adds the delete library panel modal

* Chore: updates after PR comments
This commit is contained in:
Hugo Häggmark
2021-03-24 11:43:27 +01:00
committed by GitHub
parent 26823ee438
commit 376ed8a381
13 changed files with 264 additions and 54 deletions
+2
View File
@@ -111,6 +111,8 @@ var (
ErrFolderHasConnectedLibraryPanels = errors.New("folder contains library panels that are linked to dashboards")
// errLibraryPanelVersionMismatch is an error for when a library panel has been changed by someone else.
errLibraryPanelVersionMismatch = errors.New("the library panel has been changed by someone else")
// errLibraryPanelHasConnectedDashboards is an error for when an user deletes a library panel that is connected to library panels.
errLibraryPanelHasConnectedDashboards = errors.New("the library panel is linked to dashboards")
)
// Commands