Triggers Panel: allow to change font size, closes #351.

This commit is contained in:
Alexander Zobnin
2017-02-10 16:31:57 +03:00
parent 437699372c
commit 0e1069da27
30 changed files with 4678 additions and 8 deletions

View File

@@ -137,6 +137,17 @@
ng-change="editor.panelCtrl.refresh()">
</div>
</div>
<div class="gf-form-inline">
<div class="gf-form max-width-17">
<label class="gf-form-label width-6">Font size</label>
<div class="gf-form-select-wrapper max-width-15">
<select class="gf-form-input"
ng-model="editor.panel.fontSize"
ng-options="f for f in editor.fontSizes"
ng-change="editor.panelCtrl.render()"></select>
</div>
</div>
</div>
</div>
<div class="section gf-form-group">

View File

@@ -78,10 +78,9 @@ System.register(['lodash', '../datasource-zabbix/utils', '../datasource-zabbix/c
return _this.onVariableChange();
});
this.fontSizes = ['80%', '90%', '100%', '110%', '120%', '130%', '150%', '160%', '180%', '200%', '220%', '250%'];
this.ackFilters = ['all triggers', 'unacknowledged', 'acknowledged'];
this.sortByFields = [{ text: 'last change', value: 'lastchange' }, { text: 'severity', value: 'priority' }];
this.showEventsFields = [{ text: 'All', value: [0, 1] }, { text: 'OK', value: [0] }, { text: 'Problems', value: 1 }];
// Load scope defaults

File diff suppressed because one or more lines are too long

View File

@@ -103,7 +103,8 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
okEventColor: 'rgba(0, 245, 153, 0.45)',
ackEventColor: 'rgba(0, 0, 0, 0)',
scroll: true,
pageSize: 10
pageSize: 10,
fontSize: '100%'
};
triggerStatusMap = {
'0': 'OK',

File diff suppressed because one or more lines are too long