From 7ac79e357b7b0c99c31b79175d0551c351fe79ca Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 29 Oct 2022 14:32:25 +0200 Subject: [PATCH] Virtual IP MVC/API conversion (#6105) o add missing status icon --- .../mvc/app/views/OPNsense/Diagnostics/vip.volt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/Diagnostics/vip.volt b/src/opnsense/mvc/app/views/OPNsense/Diagnostics/vip.volt index e50b6e9e2..a630e1a8a 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Diagnostics/vip.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Diagnostics/vip.volt @@ -41,7 +41,15 @@ return row.vhid_txt; }, status: function (column, row) { - return row.status_txt; + let icon = 'fa fa-info-circle fa-fw'; + if (row.status == 'MASTER') { + icon = 'fa fa-play fa-fw text-success'; + } else if (row.status == 'BACKUP') { + icon = 'fa fa-play fa-fw text-muted'; + } else if (row.status == 'DISABLED') { + icon = 'fa fa-remove fa-fw text-danger'; + } + return '  ' + row.status_txt; }, } }