Problems: sorting option
This commit is contained in:
@@ -301,8 +301,8 @@
|
||||
<label class="gf-form-label width-9">Sort by</label>
|
||||
<div class="gf-form-select-wrapper width-12">
|
||||
<select class="gf-form-input"
|
||||
ng-model="ctrl.target.options.sortTriggersBy"
|
||||
ng-options="f.text for f in ctrl.sortByFields track by f.value"
|
||||
ng-model="ctrl.target.options.sortProblems"
|
||||
ng-options="f.value as f.text for f in ctrl.sortByFields"
|
||||
ng-change="ctrl.onQueryOptionChange()">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -25,10 +25,6 @@ function getTargetDefaults() {
|
||||
options: {
|
||||
showDisabledItems: false,
|
||||
skipEmptyValues: false,
|
||||
// Problems
|
||||
hostsInMaintenance: false,
|
||||
hostProxy: false,
|
||||
sortTriggersBy: { text: 'last change', value: 'lastchange' },
|
||||
},
|
||||
table: {
|
||||
'skipEmptyValues': false
|
||||
@@ -46,7 +42,10 @@ function getProblemsTargetDefaults() {
|
||||
return {
|
||||
showProblems: ShowProblemTypes.Problems,
|
||||
options: {
|
||||
sortTriggersBy: 'default',
|
||||
acknowledged: 2,
|
||||
hostsInMaintenance: false,
|
||||
hostProxy: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -101,8 +100,9 @@ export class ZabbixQueryController extends QueryCtrl {
|
||||
];
|
||||
|
||||
this.sortByFields = [
|
||||
{ text: 'last change', value: 'lastchange' },
|
||||
{ text: 'severity', value: 'priority' }
|
||||
{ text: 'Default', value: 'default' },
|
||||
{ text: 'Last change', value: 'lastchange' },
|
||||
{ text: 'Severity', value: 'priority' },
|
||||
];
|
||||
|
||||
this.showEventsFields = [
|
||||
|
||||
Reference in New Issue
Block a user