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
3aa619b6
Commit
3aa619b6
authored
Nov 09, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Panel: fixed duplicate panel, broken after yesterdays panel menu model refactoring
parent
ef92272b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/app/controllers/row.js
+0
-4
src/app/services/panelSrv.js
+4
-0
No files found.
src/app/controllers/row.js
View file @
3aa619b6
...
...
@@ -94,10 +94,6 @@ function (angular, app, _) {
});
};
$scope
.
duplicatePanel
=
function
(
panel
,
row
)
{
$scope
.
dashboard
.
duplicatePanel
(
panel
,
row
||
$scope
.
row
);
};
$scope
.
reset_panel
=
function
(
type
)
{
var
defaultSpan
=
12
;
var
_as
=
12
-
$scope
.
dashboard
.
rowSpan
(
$scope
.
row
);
...
...
src/app/services/panelSrv.js
View file @
3aa619b6
...
...
@@ -33,6 +33,10 @@ function (angular, _) {
$scope
.
appEvent
(
'show-json-editor'
,
{
object
:
$scope
.
panel
,
updateHandler
:
$scope
.
replacePanel
});
};
$scope
.
duplicatePanel
=
function
()
{
$scope
.
dashboard
.
duplicatePanel
(
$scope
.
panel
,
$scope
.
row
);
};
$scope
.
updateColumnSpan
=
function
(
span
)
{
$scope
.
panel
.
span
=
Math
.
min
(
Math
.
max
(
$scope
.
panel
.
span
+
span
,
1
),
12
);
...
...
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