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
20b3a5d3
Commit
20b3a5d3
authored
Dec 24, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added save button to panel editors
parent
875342d3
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
19 deletions
+15
-19
src/app/directives/configModal.js
+11
-3
src/app/panels/terms/module.js
+0
-8
src/app/partials/paneleditor.html
+3
-1
src/app/services/dashboard.js
+0
-2
src/css/bootstrap.dark.min.css
+1
-1
src/vendor/bootstrap/less/bootswatch.dark.less
+0
-2
src/vendor/bootstrap/less/bootswatch.light.less
+0
-2
No files found.
src/app/directives/configModal.js
View file @
20b3a5d3
define
([
define
([
'angular'
,
'angular'
'app'
,
],
],
function
(
angular
)
{
function
(
angular
)
{
'use strict'
;
'use strict'
;
...
@@ -11,14 +10,23 @@ function (angular) {
...
@@ -11,14 +10,23 @@ function (angular) {
return
{
return
{
restrict
:
'A'
,
restrict
:
'A'
,
link
:
function
(
scope
,
elem
)
{
link
:
function
(
scope
,
elem
)
{
// create a new modal. Can't reuse one modal unforunately as the directive will not
// create a new modal. Can't reuse one modal unforunately as the directive will not
// re-render on show.
// re-render on show.
elem
.
bind
(
'click'
,
function
(){
elem
.
bind
(
'click'
,
function
(){
var
tmpScope
=
scope
.
$new
();
tmpScope
.
panel
=
angular
.
copy
(
scope
.
panel
);
tmpScope
.
editSave
=
function
(
panel
)
{
scope
.
panel
=
panel
;
};
var
panelModal
=
$modal
({
var
panelModal
=
$modal
({
template
:
'./app/partials/paneleditor.html'
,
template
:
'./app/partials/paneleditor.html'
,
persist
:
true
,
persist
:
true
,
show
:
false
,
show
:
false
,
scope
:
s
cope
,
scope
:
tmpS
cope
,
keyboard
:
false
keyboard
:
false
});
});
...
...
src/app/panels/terms/module.js
View file @
20b3a5d3
...
@@ -231,14 +231,6 @@ function (angular, app, _, $, kbn) {
...
@@ -231,14 +231,6 @@ function (angular, app, _, $, kbn) {
restrict
:
'A'
,
restrict
:
'A'
,
link
:
function
(
scope
,
elem
)
{
link
:
function
(
scope
,
elem
)
{
scope
.
$on
(
'$destroy'
,
function
()
{
console
.
log
(
'destroy'
);
if
(
$tooltip
)
{
console
.
log
(
'destroyed tooltip'
);
$tooltip
.
remove
();
}
});
// Receive render events
// Receive render events
scope
.
$on
(
'render'
,
function
(){
scope
.
$on
(
'render'
,
function
(){
render_panel
();
render_panel
();
...
...
src/app/partials/paneleditor.html
View file @
20b3a5d3
...
@@ -19,5 +19,6 @@
...
@@ -19,5 +19,6 @@
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<!-- close_edit() is provided here to allow for a scope to perform action on dismiss -->
<!-- close_edit() is provided here to allow for a scope to perform action on dismiss -->
<button
type=
"button"
class=
"btn btn-danger"
ng-click=
"editor.index=0;close_edit();dismiss()"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-success"
ng-click=
"editor.index=0;editSave(panel);close_edit();dismiss()"
>
Save
</button>
<button
type=
"button"
class=
"btn btn-danger"
ng-click=
"editor.index=0;dismiss()"
>
Cancel
</button>
</div>
</div>
\ No newline at end of file
src/app/services/dashboard.js
View file @
20b3a5d3
...
@@ -114,7 +114,6 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
...
@@ -114,7 +114,6 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// as their default
// as their default
if
(
Modernizr
.
localstorage
)
{
if
(
Modernizr
.
localstorage
)
{
if
(
!
(
_
.
isUndefined
(
window
.
localStorage
[
'dashboard'
]))
&&
window
.
localStorage
[
'dashboard'
]
!==
''
)
{
if
(
!
(
_
.
isUndefined
(
window
.
localStorage
[
'dashboard'
]))
&&
window
.
localStorage
[
'dashboard'
]
!==
''
)
{
console
.
log
(
window
.
localStorage
[
'dashboard'
]);
$location
.
path
(
config
.
default_route
);
$location
.
path
(
config
.
default_route
);
alertSrv
.
set
(
'Saving to browser storage has been replaced'
,
' with saving to Elasticsearch.'
+
alertSrv
.
set
(
'Saving to browser storage has been replaced'
,
' with saving to Elasticsearch.'
+
' Click <a href="#/dashboard/local/deprecated">here</a> to load your old dashboard anyway.'
);
' Click <a href="#/dashboard/local/deprecated">here</a> to load your old dashboard anyway.'
);
...
@@ -247,7 +246,6 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
...
@@ -247,7 +246,6 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
};
};
this
.
set_default
=
function
(
route
)
{
this
.
set_default
=
function
(
route
)
{
console
.
log
(
route
);
if
(
Modernizr
.
localstorage
)
{
if
(
Modernizr
.
localstorage
)
{
// Purge any old dashboards
// Purge any old dashboards
if
(
!
_
.
isUndefined
(
window
.
localStorage
[
'dashboard'
]))
{
if
(
!
_
.
isUndefined
(
window
.
localStorage
[
'dashboard'
]))
{
...
...
src/css/bootstrap.dark.min.css
View file @
20b3a5d3
@import
url('//fonts.googleapis.com/css?family=Droid+Sans:400,700')
;
/*!
/*!
* Bootstrap v2.3.2
* Bootstrap v2.3.2
*
*
* Copyright 2013 Twitter, Inc
* Copyright 2013 Twitter, Inc
...
...
src/vendor/bootstrap/less/bootswatch.dark.less
View file @
20b3a5d3
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
// TYPOGRAPHY
// TYPOGRAPHY
// -----------------------------------------------------
// -----------------------------------------------------
@import url('//fonts.googleapis.com/css?family=Droid+Sans:400,700');
label, input, button, select, textarea,
label, input, button, select, textarea,
.navbar .search-query:-moz-placeholder,
.navbar .search-query:-moz-placeholder,
.navbar .search-query::-webkit-input-placeholder {
.navbar .search-query::-webkit-input-placeholder {
...
...
src/vendor/bootstrap/less/bootswatch.light.less
View file @
20b3a5d3
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
// TYPOGRAPHY
// TYPOGRAPHY
// -----------------------------------------------------
// -----------------------------------------------------
//@import url('//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700');
body {
body {
font-weight: 300;
font-weight: 300;
background: @bodyBackground url('../img/light.png') repeat right top;
background: @bodyBackground url('../img/light.png') repeat right top;
...
...
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