LibraryPanels: Separates name from panel title (#38707)

* LibraryPanels: Separates name from panel title

* WIP

* Chore: fixes update for duplicate lib panels

* Chore: reverts implementation

* Chore: show library options only for library panels

* Chore: ui fixes after PR comments

* Chore: fixes issue when creating library panels
This commit is contained in:
Hugo Häggmark
2021-09-01 13:27:43 +02:00
committed by GitHub
parent 6cfb640a0b
commit 55e20bbf04
11 changed files with 115 additions and 64 deletions
@@ -59,7 +59,7 @@ func TestCreateLibraryElement(t *testing.T) {
}
})
testScenario(t, "When an admin tries to create a library panel where name and panel title differ, it should update panel title",
testScenario(t, "When an admin tries to create a library panel where name and panel title differ, it should not update panel title",
func(t *testing.T, sc scenarioContext) {
command := getCreatePanelCommand(1, "Library Panel Name")
resp := sc.service.createHandler(sc.reqContext, command)
@@ -78,7 +78,7 @@ func TestCreateLibraryElement(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Library Panel Name",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,