mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
include URL arguments in dashboard resource request (#36526)
* include URL arguments in dashboard resource request
This commit is contained in:
parent
a67eaf6b62
commit
ec45afa6b0
@ -111,8 +111,14 @@ export class DashboardLoaderSrv {
|
|||||||
return Promise.reject('expecting path parameter');
|
return Promise.reject('expecting path parameter');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const queryParams: { [key: string]: any } = {};
|
||||||
|
|
||||||
|
params.forEach((value, key) => {
|
||||||
|
queryParams[key] = value;
|
||||||
|
});
|
||||||
|
|
||||||
return getBackendSrv()
|
return getBackendSrv()
|
||||||
.get(`/api/datasources/${ds.id}/resources/${path}`, {})
|
.get(`/api/datasources/${ds.id}/resources/${path}`, queryParams)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
return {
|
return {
|
||||||
meta: {
|
meta: {
|
||||||
|
Loading…
Reference in New Issue
Block a user