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
3c7e5446
Commit
3c7e5446
authored
Sep 18, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
be3b6841
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
public/app/features/dashboard/dashgrid/PanelEditor.tsx
+7
-4
public/app/features/dashboard/dashgrid/PanelHeader.tsx
+11
-8
No files found.
public/app/features/dashboard/dashgrid/PanelEditor.tsx
View file @
3c7e5446
...
@@ -2,11 +2,11 @@ import React from 'react';
...
@@ -2,11 +2,11 @@ import React from 'react';
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
import
{
store
}
from
'app/stores/store'
;
import
{
store
}
from
'app/store/configureStore'
;
import
{
observer
}
from
'mobx-react'
;
import
{
QueriesTab
}
from
'./QueriesTab'
;
import
{
QueriesTab
}
from
'./QueriesTab'
;
import
{
PanelPlugin
,
PluginExports
}
from
'app/types/plugins'
;
import
{
PanelPlugin
,
PluginExports
}
from
'app/types/plugins'
;
import
{
VizTypePicker
}
from
'./VizTypePicker'
;
import
{
VizTypePicker
}
from
'./VizTypePicker'
;
import
{
updateLocation
}
from
'app/core/actions'
;
interface
PanelEditorProps
{
interface
PanelEditorProps
{
panel
:
PanelModel
;
panel
:
PanelModel
;
...
@@ -22,7 +22,6 @@ interface PanelEditorTab {
...
@@ -22,7 +22,6 @@ interface PanelEditorTab {
icon
:
string
;
icon
:
string
;
}
}
@
observer
export
class
PanelEditor
extends
React
.
Component
<
PanelEditorProps
,
any
>
{
export
class
PanelEditor
extends
React
.
Component
<
PanelEditorProps
,
any
>
{
tabs
:
PanelEditorTab
[];
tabs
:
PanelEditorTab
[];
...
@@ -65,7 +64,11 @@ export class PanelEditor extends React.Component<PanelEditorProps, any> {
...
@@ -65,7 +64,11 @@ export class PanelEditor extends React.Component<PanelEditorProps, any> {
}
}
onChangeTab
=
(
tab
:
PanelEditorTab
)
=>
{
onChangeTab
=
(
tab
:
PanelEditorTab
)
=>
{
store
.
view
.
updateQuery
({
tab
:
tab
.
id
},
false
);
store
.
dispatch
(
updateLocation
({
query
:
{
tab
:
tab
.
id
},
})
);
};
};
render
()
{
render
()
{
...
...
public/app/features/dashboard/dashgrid/PanelHeader.tsx
View file @
3c7e5446
...
@@ -2,7 +2,8 @@ import React from 'react';
...
@@ -2,7 +2,8 @@ import React from 'react';
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
import
{
store
}
from
'app/stores/store'
;
import
{
store
}
from
'app/store/configureStore'
;
import
{
updateLocation
}
from
'app/core/actions'
;
interface
PanelHeaderProps
{
interface
PanelHeaderProps
{
panel
:
PanelModel
;
panel
:
PanelModel
;
...
@@ -11,24 +12,26 @@ interface PanelHeaderProps {
...
@@ -11,24 +12,26 @@ interface PanelHeaderProps {
export
class
PanelHeader
extends
React
.
Component
<
PanelHeaderProps
,
any
>
{
export
class
PanelHeader
extends
React
.
Component
<
PanelHeaderProps
,
any
>
{
onEditPanel
=
()
=>
{
onEditPanel
=
()
=>
{
store
.
view
.
updateQuery
(
store
.
dispatch
(
{
updateLocation
({
query
:
{
panelId
:
this
.
props
.
panel
.
id
,
panelId
:
this
.
props
.
panel
.
id
,
edit
:
true
,
edit
:
true
,
fullscreen
:
true
,
fullscreen
:
true
,
},
},
false
})
);
);
};
};
onViewPanel
=
()
=>
{
onViewPanel
=
()
=>
{
store
.
view
.
updateQuery
(
store
.
dispatch
(
{
updateLocation
({
query
:
{
panelId
:
this
.
props
.
panel
.
id
,
panelId
:
this
.
props
.
panel
.
id
,
fullscreen
:
true
,
edit
:
false
,
edit
:
false
,
fullscreen
:
true
,
},
},
false
})
);
);
};
};
...
...
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