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
010baad5
Commit
010baad5
authored
Sep 22, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard: fixed init of editable setting, #837
parent
af52b20c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
src/app/services/dashboard/dashboardSrv.js
+1
-1
src/test/specs/dashboardSrv-specs.js
+16
-0
No files found.
src/app/services/dashboard/dashboardSrv.js
View file @
010baad5
...
...
@@ -25,7 +25,7 @@ function (angular, $, kbn, _, moment) {
this
.
tags
=
data
.
tags
||
[];
this
.
style
=
data
.
style
||
"dark"
;
this
.
timezone
=
data
.
timezone
||
'browser'
;
this
.
editable
=
data
.
editable
||
true
;
this
.
editable
=
data
.
editable
===
false
?
false
:
true
;
this
.
hideControls
=
data
.
hideControls
||
false
;
this
.
rows
=
data
.
rows
||
[];
this
.
nav
=
data
.
nav
||
[];
...
...
src/test/specs/dashboardSrv-specs.js
View file @
010baad5
...
...
@@ -82,6 +82,22 @@ define([
});
describe
(
'when creating dashboard with editable false'
,
function
()
{
var
model
;
beforeEach
(
module
(
'grafana.services'
));
beforeEach
(
inject
(
function
(
dashboardSrv
)
{
model
=
dashboardSrv
.
create
({
editable
:
false
});
}));
it
(
'should set editable false'
,
function
()
{
expect
(
model
.
editable
).
to
.
be
(
false
);
});
});
describe
(
'when creating dashboard with old schema'
,
function
()
{
var
model
;
var
graph
;
...
...
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