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
4e97df06
Commit
4e97df06
authored
Mar 25, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed ghost panel
parent
e31a3a64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
26 deletions
+0
-26
src/app/features/dashboard/rowCtrl.js
+0
-18
src/app/partials/dashboard.html
+0
-8
No files found.
src/app/features/dashboard/rowCtrl.js
View file @
4e97df06
...
...
@@ -169,22 +169,4 @@ function (angular, app, _, config) {
};
});
module
.
directive
(
'panelGhost'
,
function
()
{
return
function
(
scope
,
element
)
{
function
updateWidth
()
{
var
spanLeft
=
12
-
scope
.
dashboard
.
rowSpan
(
scope
.
row
);
if
(
spanLeft
>
1
)
{
element
.
show
();
element
.
find
(
'.panel-container'
).
css
(
'height'
,
scope
.
row
.
height
);
element
[
0
].
style
.
width
=
((
spanLeft
/
1.2
)
*
10
)
+
'%'
;
}
else
{
element
.
hide
();
}
}
updateWidth
();
scope
.
$on
(
'dashboard-panel-span-updated'
,
updateWidth
);
};
});
});
src/app/partials/dashboard.html
View file @
4e97df06
...
...
@@ -86,14 +86,6 @@
<panel-loader
type=
"panel.type"
class=
"panel-margin"
></panel-loader>
</div>
<div
class=
"panel panel-ghost"
ng-if=
"!row.panels.length"
>
<div
class=
"panel-container panel-margin"
>
<div
class=
"panel-ghost-list"
ng-repeat=
"(key, value) in panels"
>
<button
class=
"btn btn-inverse"
ng-click=
"add_panel_default(key)"
><i
class=
"fa fa-plus"
></i>
{{value.name}}
</button>
</div>
</div>
</div>
<div
panel-drop-zone
class=
"panel panel-drop-zone"
ui-on-drop=
"onDrop($data, row)"
data-drop=
"true"
>
<div
class=
"panel-container"
style=
"background: transparent"
>
<div
style=
"text-align: center"
>
...
...
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