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
@@ -229,7 +229,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Text - Library Panel2",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,
@@ -293,7 +293,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Text - Library Panel2",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,
@@ -549,7 +549,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Text - Library Panel2",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,
@@ -679,7 +679,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Text - Library Panel2",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,
@@ -743,7 +743,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Text - Library Panel2",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,
@@ -872,7 +872,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Text - Library Panel2",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,
@@ -1018,7 +1018,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A Library Panel",
"id": float64(1),
"title": "Some Other",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,
@@ -1119,7 +1119,7 @@ func TestGetAllLibraryElements(t *testing.T) {
"datasource": "${DS_GDEV-TESTDATA}",
"description": "A description",
"id": float64(1),
"title": "Text - Library Panel2",
"title": "Text - Library Panel",
"type": "text",
},
Version: 1,