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
b766d900
Commit
b766d900
authored
Oct 25, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ability to add custom query string filters
parent
0f96b7a2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
+19
-8
src/app/panels/filtering/module.html
+7
-5
src/app/panels/filtering/module.js
+11
-1
src/app/panels/table/module.js
+0
-1
src/app/panels/terms/module.js
+1
-1
No files found.
src/app/panels/filtering/module.html
View file @
b766d900
...
...
@@ -74,17 +74,18 @@
</li>
</ul>
</div>
<
div
ng-show=
"filterSrv.list[id].editing && isEditable(filterSrv.list[id])"
>
<
form
ng-show=
"filterSrv.list[id].editing && isEditable(filterSrv.list[id])"
>
<ul
class=
"unstyled"
>
<li
ng-repeat=
"key in _.keys(filterSrv.list[id])"
ng-show=
"show_key(key)"
>
<strong>
{{key}}
</strong>
:
<input
type=
'text'
ng-model=
"filterSrv.list[id][key]"
>
</li>
</ul>
<div>
<input
type=
"submit"
value=
"Apply"
ng-click=
"filterSrv.list[id].editing=undefined;refresh()"
class=
"filter-apply btn btn-success btn-mini"
bs-tooltip=
"'Save and refresh'"
/>
<button
ng-click=
"filterSrv.list[id].editing=undefined"
class=
"filter-apply btn btn-mini"
bs-tooltip=
"'Save without refresh'"
>
Save
</button>
</div>
<div
class=
"filter-apply"
ng-show=
"filterSrv.list[id].editing"
>
<button
ng-click=
"filterSrv.list[id].editing=undefined"
class=
"btn btn-mini"
bs-tooltip=
"'Save without refresh'"
>
Save
</button>
<button
ng-click=
"filterSrv.list[id].editing=undefined;refresh()"
class=
"btn btn-success btn-mini"
bs-tooltip=
"'Save and refresh'"
>
Apply
</button>
</div>
</form>
</div>
<i
class=
"link icon-plus-sign"
ng-click=
"add()"
bs-tooltip=
"'Add a query filter'"
data-placement=
"right"
></i>
</div>
</div>
\ No newline at end of file
src/app/panels/filtering/module.js
View file @
b766d900
...
...
@@ -17,7 +17,7 @@ function (angular, app, _) {
module
.
controller
(
'filtering'
,
function
(
$scope
,
filterSrv
,
$rootScope
,
dashboard
)
{
$scope
.
panelMeta
=
{
status
:
"
Beta
"
,
status
:
"
Stable
"
,
description
:
"A controllable list of all filters currently applied to the dashboard. You "
+
"almost certainly want one of these on your dashboard somewhere."
};
...
...
@@ -45,6 +45,16 @@ function (angular, app, _) {
dashboard
.
refresh
();
};
$scope
.
add
=
function
(
query
)
{
query
=
query
||
'*'
;
filterSrv
.
set
({
editing
:
true
,
type
:
'querystring'
,
query
:
query
,
mandate
:
'must'
},
undefined
,
true
);
};
$scope
.
refresh
=
function
()
{
dashboard
.
refresh
();
};
...
...
src/app/panels/table/module.js
View file @
b766d900
...
...
@@ -60,7 +60,6 @@ function (angular, app, _, kbn, moment) {
// Set and populate defaults
var
_d
=
{
status
:
"Stable"
,
queries
:
{
mode
:
'all'
,
ids
:
[]
...
...
src/app/panels/terms/module.js
View file @
b766d900
...
...
@@ -36,7 +36,7 @@ function (angular, app, _, $, kbn) {
editorTabs
:
[
{
title
:
'Queries'
,
src
:
'app/partials/querySelect.html'
}
],
status
:
"
Beta
"
,
status
:
"
Stable
"
,
description
:
"Displays the results of an elasticsearch facet as a pie chart, bar chart, or a "
+
"table"
};
...
...
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