feature: Make the dashboard target configurable
This commit is contained in:
parent
db1395ae7f
commit
04b63f8aeb
@ -302,6 +302,9 @@ Module declaration, on `config.json`:
|
||||
"type": "dashboard",
|
||||
"endpoints": {
|
||||
"get": "http://server.url/dashboards/"
|
||||
},
|
||||
"parameters": {
|
||||
"target": "default"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -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' }`
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user