mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -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');
|
||||
}
|
||||
|
||||
const queryParams: { [key: string]: any } = {};
|
||||
|
||||
params.forEach((value, key) => {
|
||||
queryParams[key] = value;
|
||||
});
|
||||
|
||||
return getBackendSrv()
|
||||
.get(`/api/datasources/${ds.id}/resources/${path}`, {})
|
||||
.get(`/api/datasources/${ds.id}/resources/${path}`, queryParams)
|
||||
.then((data) => {
|
||||
return {
|
||||
meta: {
|
||||
|
Loading…
Reference in New Issue
Block a user