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
3fc6f6d7
Commit
3fc6f6d7
authored
Oct 28, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(dashboard): minor fixes
parent
366650e1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
public/app/core/routes/dashboard_loaders.js
+2
-2
public/app/features/dashboard/model.ts
+3
-4
public/app/features/dashboard/row/row.ts
+1
-1
public/sass/pages/_dashboard.scss
+3
-3
No files found.
public/app/core/routes/dashboard_loaders.js
View file @
3fc6f6d7
...
...
@@ -28,15 +28,15 @@ function (coreModule) {
coreModule
.
default
.
controller
(
'NewDashboardCtrl'
,
function
(
$scope
)
{
$scope
.
initDashboard
({
meta
:
{
canStar
:
false
,
canShare
:
false
},
meta
:
{
canStar
:
false
,
canShare
:
false
,
isNew
:
true
},
dashboard
:
{
title
:
"New dashboard"
,
isNew
:
true
,
rows
:
[
{
title
:
'Dashboard Row'
,
height
:
'250px'
,
panels
:[],
isNew
:
true
,
}
]
},
...
...
public/app/features/dashboard/model.ts
View file @
3fc6f6d7
...
...
@@ -65,15 +65,14 @@ export class DashboardModel {
this
.
links
=
data
.
links
||
[];
this
.
gnetId
=
data
.
gnetId
||
null
;
if
(
this
.
id
===
null
)
{
this
.
editMode
=
true
;
}
this
.
updateSchema
(
data
);
this
.
initMeta
(
meta
);
this
.
editMode
=
this
.
meta
.
isNew
;
}
private
initMeta
(
meta
)
{
console
.
log
(
meta
);
meta
=
meta
||
{};
meta
.
canShare
=
meta
.
canShare
!==
false
;
...
...
public/app/features/dashboard/row/row.ts
View file @
3fc6f6d7
...
...
@@ -19,7 +19,7 @@ export class DashRowCtrl {
constructor
(
private
$scope
,
private
$rootScope
,
private
$timeout
,
private
uiSegmentSrv
,
private
$q
)
{
this
.
row
.
title
=
this
.
row
.
title
||
'Row title'
;
if
(
this
.
row
.
isNew
)
{
if
(
this
.
dashboard
.
meta
.
isNew
)
{
this
.
dropView
=
1
;
delete
this
.
row
.
isNew
;
}
...
...
public/sass/pages/_dashboard.scss
View file @
3fc6f6d7
...
...
@@ -353,9 +353,9 @@ div.flot-text {
.dash-row-add-panel
{
margin
:
0
;
padding
:
$panel-margin
*
2
;
display
:
flex
;
align-items
:
flex-start
;
position
:
relative
;
//
display: flex;
//
align-items: flex-start;
//
position: relative;
}
.add-panel-panels-scroll
{
...
...
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