mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-04 10:25:24 +00:00
improve rule_direction formatter
this adds arrow icons to the direction formatter Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
076d6a72ad
commit
4b7e5c48dd
10
js/Utils.js
10
js/Utils.js
@ -41,8 +41,16 @@ Ext.define('PMG.Utils', {
|
||||
2: gettext('In & Out')
|
||||
},
|
||||
|
||||
rule_direction_icon: {
|
||||
0: '<span class="x-fa fa-fw fa-long-arrow-left"></span> ',
|
||||
1: '<span class="x-fa fa-fw fa-long-arrow-right"></span> ',
|
||||
2: '<span class="x-fa fa-fw fa-exchange"></span> '
|
||||
},
|
||||
|
||||
format_rule_direction: function(dir) {
|
||||
return PMG.Utils.rule_direction_text[dir] || dir;
|
||||
var icon = PMG.Utils.rule_direction_icon[dir] || '';
|
||||
var text = PMG.Utils.rule_direction_text[dir] || dir;
|
||||
return icon + text;
|
||||
},
|
||||
|
||||
format_otype: function(otype) {
|
||||
|
Loading…
Reference in New Issue
Block a user