feature: Make the dashboard target configurable

This commit is contained in:
Fabien Quatravaux 2021-02-26 15:29:34 +01:00
parent db1395ae7f
commit 04b63f8aeb
2 changed files with 4 additions and 0 deletions

View File

@ -302,6 +302,9 @@ Module declaration, on `config.json`:
"type": "dashboard",
"endpoints": {
"get": "http://server.url/dashboards/"
},
"parameters": {
"target": "default"
}
}
```

View File

@ -1,4 +1,5 @@
div.padding-top-xlarge.padding-right-xsmall.padding-bottom-xlarge.padding-left-xsmall.sm-padding-top-medium.bg-color-grey.whitespace-normal
solid-dashboard(
data-src=`${component.endpoints.get}`
target=`${component.parameters && component.parameters.target ? component.parameters.target : 'default' }`
)