Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
grafana
Commits
cf9a8a15
Commit
cf9a8a15
authored
Feb 27, 2014
by
Torkel Ödegaard
Browse files
refactoring graphite panel
parent
c4219ba0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/panels/graphite/module.html
View file @
cf9a8a15
...
...
@@ -32,7 +32,7 @@
</div>
</div>
<div
class=
"tab-content"
ng-show=
"editorTabs[editor.index] == 'General'"
>
<!--
<div class="tab-content" ng-show="editorTabs[editor.index] == 'General'">
<div ng-include src="'app/partials/panelgeneral.html'"></div>
<div class="editor-row" ng-show="datasources.length > 0">
...
...
@@ -44,8 +44,8 @@
</div>
</div>
</div>
<div
class=
"tab-content"
ng-repeat=
"tab in panelMeta.
fullE
ditorTabs"
ng-show=
"editorTabs[editor.index] == tab.title"
>
-->
<div
class=
"tab-content"
ng-repeat=
"tab in panelMeta.
e
ditorTabs"
ng-show=
"editorTabs[editor.index] == tab.title"
>
<div
ng-include
src=
"tab.src"
></div>
</div>
...
...
src/app/panels/graphite/module.js
View file @
cf9a8a15
...
...
@@ -38,9 +38,12 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
$scope
.
panelMeta
=
{
modals
:
[],
editorTabs
:
[],
fullEditorTabs
:
[
editorTabs
:
[
{
title
:
'
General
'
,
src
:
'
app/partials/panelgeneral.html
'
},
{
title
:
'
Targets
'
,
src
:
'
app/panels/graphite/editor.html
'
...
...
@@ -221,7 +224,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
$scope
.
fullscreen
=
false
;
$scope
.
options
=
false
;
$scope
.
editor
=
{
index
:
1
};
$scope
.
editorTabs
=
_
.
union
([
'
General
'
],
_
.
pluck
(
$scope
.
panelMeta
.
fullE
ditorTabs
,
'
title
'
)
)
;
$scope
.
editorTabs
=
_
.
pluck
(
$scope
.
panelMeta
.
e
ditorTabs
,
'
title
'
);
$scope
.
hiddenSeries
=
{};
$scope
.
datasources
=
datasourceSrv
.
listOptions
();
...
...
Write
Preview
Supports
Markdown
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