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
18727dce
Commit
18727dce
authored
Jan 24, 2019
by
Hugo Häggmark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed close split look and feel
parent
42f70005
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
22 deletions
+20
-22
public/app/features/explore/ExploreToolbar.tsx
+20
-20
public/sass/pages/_explore.scss
+0
-2
No files found.
public/app/features/explore/ExploreToolbar.tsx
View file @
18727dce
...
...
@@ -3,23 +3,6 @@ import { ExploreId } from 'app/types/explore';
import
{
DataSourceSelectItem
,
RawTimeRange
,
TimeRange
}
from
'@grafana/ui'
;
import
{
DataSourcePicker
}
from
'app/core/components/Select/DataSourcePicker'
;
interface
Props
{
datasourceMissing
:
boolean
;
exploreDatasources
:
DataSourceSelectItem
[];
exploreId
:
ExploreId
;
loading
:
boolean
;
range
:
RawTimeRange
;
selectedDatasource
:
DataSourceSelectItem
;
splitted
:
boolean
;
timepicker
:
JSX
.
Element
;
onChangeDatasource
:
(
option
)
=>
void
;
onClearAll
:
()
=>
void
;
onCloseSplit
:
()
=>
void
;
onChangeTime
:
(
range
:
TimeRange
,
changedByScanner
?:
boolean
)
=>
void
;
onRunQuery
:
()
=>
void
;
onSplit
:
()
=>
void
;
}
const
createDatasourcePicker
=
(
props
:
Props
)
=>
{
const
{
exploreDatasources
,
selectedDatasource
}
=
props
;
...
...
@@ -55,6 +38,23 @@ const createSplittedClassName = (options: { splitted: boolean; className: string
return
splitted
?
`
${
className
}
-splitted`
:
className
;
};
interface
Props
{
datasourceMissing
:
boolean
;
exploreDatasources
:
DataSourceSelectItem
[];
exploreId
:
ExploreId
;
loading
:
boolean
;
range
:
RawTimeRange
;
selectedDatasource
:
DataSourceSelectItem
;
splitted
:
boolean
;
timepicker
:
JSX
.
Element
;
onChangeDatasource
:
(
option
)
=>
void
;
onClearAll
:
()
=>
void
;
onCloseSplit
:
()
=>
void
;
onChangeTime
:
(
range
:
TimeRange
,
changedByScanner
?:
boolean
)
=>
void
;
onRunQuery
:
()
=>
void
;
onSplit
:
()
=>
void
;
}
export
class
ExploreToolbar
extends
PureComponent
<
Props
,
{}
>
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -86,9 +86,9 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
</
div
>
<
div
className=
"toolbar-header-close"
>
{
exploreId
===
'right'
&&
(
<
button
className=
"btn navbar-button"
onClick=
{
this
.
props
.
onCloseSplit
}
>
Close Split
</
button
>
<
a
onClick=
{
this
.
props
.
onCloseSplit
}
>
<
i
className=
"fa fa-window-close fa-fw"
/>
</
a
>
)
}
</
div
>
</
div
>
...
...
public/sass/pages/_explore.scss
View file @
18727dce
...
...
@@ -154,11 +154,9 @@
padding
:
5px
2px
;
}
.btn.navbar-button
{
.btn-title
{
display
:
none
;
}
}
}
.explore
{
...
...
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