Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
6402dde6
Unverified
Commit
6402dde6
authored
Apr 01, 2020
by
Hugo Häggmark
Committed by
GitHub
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: update Changelog with backendSrv plugin notice (#23244)
* Chore: updates CHANGELOG * Docs: updates after PR comments
parent
aae76d79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
CHANGELOG.md
+17
-0
No files found.
CHANGELOG.md
View file @
6402dde6
...
...
@@ -45,6 +45,23 @@ backendSrv.get(‘http://your.url/api’).then(result => {
});
```
Another unfortunate outcome from this work in
`backendSrv`
is that the response format for
`.headers()`
changed from a function to an object.
To make your plugin work on 6.7.x as well as on previous versions you should add something like the following:
```
typescript
let
responseHeaders
=
response
.
headers
;
if
(
!
responseHeaders
)
{
return
null
;
}
// Support pre 6.7 angular HTTP rather than fetch
if
(
typeof
responseHeaders
===
'function'
)
{
responseHeaders
=
responseHeaders
();
}
```
You can test your plugin with the
`master`
branch version of Grafana.
### Features / Enhancements
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment