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
2de04898
Commit
2de04898
authored
Jan 17, 2018
by
Johannes Schill
Committed by
Daniel Lee
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashfolders: Send down backendSrv to the react components #10275
parent
b79a15b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
public/app/containers/IContainerProps.ts
+1
-0
public/app/containers/ManageDashboards/FolderPermissions.tsx
+1
-1
public/app/routes/ReactContainer.tsx
+4
-2
No files found.
public/app/containers/IContainerProps.ts
View file @
2de04898
...
...
@@ -12,6 +12,7 @@ interface IContainerProps {
alertList
:
typeof
AlertListStore
.
Type
;
view
:
typeof
ViewStore
.
Type
;
folder
:
typeof
FolderStore
.
Type
;
backendSrv
:
any
;
}
export
default
IContainerProps
;
public/app/containers/ManageDashboards/FolderPermissions.tsx
View file @
2de04898
...
...
@@ -33,7 +33,7 @@ export class FolderPermissions extends Component<IContainerProps, any> {
return
(
<
div
>
<
PageHeader
model=
{
nav
as
any
}
/>
<
Permissions
isFolder=
{
true
}
error=
""
newType=
""
dashboardId=
{
1
}
/>
<
Permissions
isFolder=
{
true
}
error=
""
newType=
""
dashboardId=
{
1
}
backendSrv=
{
this
.
props
.
backendSrv
}
/>
</
div
>
);
}
...
...
public/app/routes/ReactContainer.tsx
View file @
2de04898
...
...
@@ -13,13 +13,15 @@ function WrapInProvider(store, Component, props) {
}
/** @ngInject */
export
function
reactContainer
(
$route
,
$location
)
{
export
function
reactContainer
(
$route
,
$location
,
backendSrv
)
{
return
{
restrict
:
'E'
,
template
:
''
,
link
(
scope
,
elem
)
{
let
component
=
$route
.
current
.
locals
.
component
;
let
props
=
{};
let
props
=
{
backendSrv
:
backendSrv
,
};
ReactDOM
.
render
(
WrapInProvider
(
store
,
component
,
props
),
elem
[
0
]);
...
...
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