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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
24 deletions
+22
-24
public/app/features/explore/ExploreToolbar.tsx
+20
-20
public/sass/pages/_explore.scss
+2
-4
No files found.
public/app/features/explore/ExploreToolbar.tsx
View file @
18727dce
...
@@ -3,23 +3,6 @@ import { ExploreId } from 'app/types/explore';
...
@@ -3,23 +3,6 @@ import { ExploreId } from 'app/types/explore';
import
{
DataSourceSelectItem
,
RawTimeRange
,
TimeRange
}
from
'@grafana/ui'
;
import
{
DataSourceSelectItem
,
RawTimeRange
,
TimeRange
}
from
'@grafana/ui'
;
import
{
DataSourcePicker
}
from
'app/core/components/Select/DataSourcePicker'
;
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
createDatasourcePicker
=
(
props
:
Props
)
=>
{
const
{
exploreDatasources
,
selectedDatasource
}
=
props
;
const
{
exploreDatasources
,
selectedDatasource
}
=
props
;
...
@@ -55,6 +38,23 @@ const createSplittedClassName = (options: { splitted: boolean; className: string
...
@@ -55,6 +38,23 @@ const createSplittedClassName = (options: { splitted: boolean; className: string
return
splitted
?
`
${
className
}
-splitted`
:
className
;
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
,
{}
>
{
export
class
ExploreToolbar
extends
PureComponent
<
Props
,
{}
>
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
...
@@ -86,9 +86,9 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
...
@@ -86,9 +86,9 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
</
div
>
</
div
>
<
div
className=
"toolbar-header-close"
>
<
div
className=
"toolbar-header-close"
>
{
exploreId
===
'right'
&&
(
{
exploreId
===
'right'
&&
(
<
button
className=
"btn navbar-button"
onClick=
{
this
.
props
.
onCloseSplit
}
>
<
a
onClick=
{
this
.
props
.
onCloseSplit
}
>
Close Split
<
i
className=
"fa fa-window-close fa-fw"
/>
</
button
>
</
a
>
)
}
)
}
</
div
>
</
div
>
</
div
>
</
div
>
...
...
public/sass/pages/_explore.scss
View file @
18727dce
...
@@ -154,10 +154,8 @@
...
@@ -154,10 +154,8 @@
padding
:
5px
2px
;
padding
:
5px
2px
;
}
}
.btn.navbar-button
{
.btn-title
{
.btn-title
{
display
:
none
;
display
:
none
;
}
}
}
}
}
...
...
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