mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes info field not correctly displayed (#8707)
This commit is contained in:
parent
ad5494e710
commit
ce8d2fa3ea
7 changed files with 58 additions and 14 deletions
30
http_src/utilities/map/info-utils.js
Normal file
30
http_src/utilities/map/info-utils.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
(C) 2013-24 - ntop.org
|
||||
*/
|
||||
|
||||
const flowInfo = {
|
||||
'Audio': "<i class='fa fa-lg fa-volume-up'></i>",
|
||||
'Video': "<i class='fa fa-lg fa-video'></i>",
|
||||
'Desktop Sharing': "<i class='fa fa-lg fa-binoculars'></i>",
|
||||
}
|
||||
|
||||
/* *********************************** */
|
||||
|
||||
const addFlowInfoIcon = function(info) {
|
||||
let formatted_info = info;
|
||||
|
||||
if (info && flowInfo[info]) {
|
||||
formatted_info = `${flowInfo[info]} ${info}`;
|
||||
}
|
||||
return formatted_info;
|
||||
}
|
||||
|
||||
/* *********************************** */
|
||||
|
||||
const infoUtils = function () {
|
||||
return {
|
||||
addFlowInfoIcon
|
||||
};
|
||||
}();
|
||||
|
||||
export default infoUtils;
|
||||
Loading…
Add table
Add a link
Reference in a new issue