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
094226f6
Commit
094226f6
authored
Sep 30, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set placeholder for es save to dashboard title by default, add notice when no indices match
parent
bd212666
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/app/partials/dashLoader.html
+1
-1
src/app/services/dashboard.js
+3
-1
No files found.
src/app/partials/dashLoader.html
View file @
094226f6
...
...
@@ -67,7 +67,7 @@
<li
ng-show=
"loader.save_elasticsearch"
>
<h5>
Elasticsearch
</h5>
<form
class=
"input-append"
>
<input
class=
'input-medium'
placeholder=
'Title'
type=
"text"
ng-model=
"elasticsearch.title"
/>
<input
class=
'input-medium'
placeholder=
"{{dashboard.current.title}}"
type=
"text"
ng-model=
"elasticsearch.title"
/>
<button
class=
"btn"
ng-click=
"elasticsearch_save('dashboard')"
><i
class=
"icon-save"
></i></button>
</form>
</li>
...
...
src/app/services/dashboard.js
View file @
094226f6
...
...
@@ -116,12 +116,14 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
if
(
p
.
length
>
0
)
{
self
.
indices
=
p
;
}
else
{
//
TODO:
Option to not failover
// Option to not failover
if
(
self
.
current
.
failover
)
{
self
.
indices
=
[
self
.
current
.
index
.
default
];
}
else
{
// Do not issue refresh if no indices match. This should be removed when panels
// properly understand when no indices are present
alertSrv
.
set
(
'No results'
,
'There were no results because no indices were found that match your'
+
' selected time span'
,
'info'
,
5000
);
return
false
;
}
}
...
...
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