problems: add layout options

This commit is contained in:
Alexander Zobnin
2019-01-16 11:57:12 +03:00
parent a61f219dfc
commit ba2c6aff99
4 changed files with 34 additions and 12 deletions

View File

@@ -19,6 +19,10 @@ class TriggerPanelOptionsCtrl {
this.panelCtrl = $scope.ctrl;
this.panel = this.panelCtrl.panel;
this.layouts = [
{ text: 'Table', value: 'table' },
{ text: 'List', value: 'list' }
];
this.fontSizes = ['80%', '90%', '100%', '110%', '120%', '130%', '150%', '160%', '180%', '200%', '220%', '250%'];
this.ackFilters = [
'all triggers',
@@ -26,12 +30,12 @@ class TriggerPanelOptionsCtrl {
'acknowledged'
];
this.sortByFields = [
{ text: 'last change', value: 'lastchange' },
{ text: 'severity', value: 'priority' }
{ text: 'last change', value: 'lastchange' },
{ text: 'severity', value: 'priority' }
];
this.showEventsFields = [
{ text: 'All', value: [0,1] },
{ text: 'OK', value: [0] },
{ text: 'All', value: [0,1] },
{ text: 'OK', value: [0] },
{ text: 'Problems', value: 1 }
];
}