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
cc71b1f0
Commit
cc71b1f0
authored
Mar 24, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ghost panel test
parent
7919d793
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
src/app/features/dashboard/rowCtrl.js
+2
-2
src/app/features/panel/panelMenu.js
+3
-3
src/app/features/panel/panelSrv.js
+1
-0
No files found.
src/app/features/dashboard/rowCtrl.js
View file @
cc71b1f0
...
@@ -81,13 +81,13 @@ function (angular, app, _, config) {
...
@@ -81,13 +81,13 @@ function (angular, app, _, config) {
$scope
.
$broadcast
(
'render'
);
$scope
.
$broadcast
(
'render'
);
};
};
$scope
.
remove
_panel_from_row
=
function
(
row
,
panel
)
{
$scope
.
remove
Panel
=
function
(
panel
)
{
$scope
.
appEvent
(
'confirm-modal'
,
{
$scope
.
appEvent
(
'confirm-modal'
,
{
title
:
'Are you sure you want to remove this panel?'
,
title
:
'Are you sure you want to remove this panel?'
,
icon
:
'fa-trash'
,
icon
:
'fa-trash'
,
yesText
:
'Delete'
,
yesText
:
'Delete'
,
onConfirm
:
function
()
{
onConfirm
:
function
()
{
row
.
panels
=
_
.
without
(
row
.
panels
,
panel
);
$scope
.
row
.
panels
=
_
.
without
(
$scope
.
row
.
panels
,
panel
);
}
}
});
});
};
};
...
...
src/app/features/panel/panelMenu.js
View file @
cc71b1f0
...
@@ -20,9 +20,9 @@ function (angular, $, _) {
...
@@ -20,9 +20,9 @@ function (angular, $, _) {
var
template
=
'<div class="panel-menu small">'
;
var
template
=
'<div class="panel-menu small">'
;
template
+=
'<div class="panel-menu-inner">'
;
template
+=
'<div class="panel-menu-inner">'
;
template
+=
'<div class="panel-menu-row">'
;
template
+=
'<div class="panel-menu-row">'
;
template
+=
'<a class="panel-menu-icon pull-left" ng-click="updateColumnSpan(-1)"><i class="fa fa-minus"></i></a>'
;
template
+=
'<a class="panel-menu-icon pull-left" ng-click="updateColumnSpan(
panel,
-1)"><i class="fa fa-minus"></i></a>'
;
template
+=
'<a class="panel-menu-icon pull-left" ng-click="updateColumnSpan(1)"><i class="fa fa-plus"></i></a>'
;
template
+=
'<a class="panel-menu-icon pull-left" ng-click="updateColumnSpan(
panel,
1)"><i class="fa fa-plus"></i></a>'
;
template
+=
'<a class="panel-menu-icon pull-right" ng-click="remove
_panel_from_row(row,
panel)"><i class="fa fa-remove"></i></a>'
;
template
+=
'<a class="panel-menu-icon pull-right" ng-click="remove
Panel(
panel)"><i class="fa fa-remove"></i></a>'
;
template
+=
'<div class="clearfix"></div>'
;
template
+=
'<div class="clearfix"></div>'
;
template
+=
'</div>'
;
template
+=
'</div>'
;
...
...
src/app/features/panel/panelSrv.js
View file @
cc71b1f0
...
@@ -41,6 +41,7 @@ function (angular, _, config) {
...
@@ -41,6 +41,7 @@ function (angular, _, config) {
$scope
.
updateColumnSpan
=
function
(
span
)
{
$scope
.
updateColumnSpan
=
function
(
span
)
{
$scope
.
panel
.
span
=
Math
.
min
(
Math
.
max
(
$scope
.
panel
.
span
+
span
,
1
),
12
);
$scope
.
panel
.
span
=
Math
.
min
(
Math
.
max
(
$scope
.
panel
.
span
+
span
,
1
),
12
);
$scope
.
row
.
updatePanelSpan
()
$timeout
(
function
()
{
$timeout
(
function
()
{
$scope
.
$broadcast
(
'render'
);
$scope
.
$broadcast
(
'render'
);
...
...
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