Problems: sorting option

This commit is contained in:
Alexander Zobnin
2020-05-13 18:37:41 +03:00
parent 2588fd5c50
commit 413bf583d6
8 changed files with 36 additions and 21 deletions

View File

@@ -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 = [