mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Moved active monitoring page to vuejs
This commit is contained in:
parent
0a2b1e8bb9
commit
963579b526
18 changed files with 1469 additions and 3 deletions
|
|
@ -13,6 +13,12 @@ const isEmptyOrNull = (value) => {
|
|||
return !!(value == null || value == "");
|
||||
}
|
||||
|
||||
/* This function check if value is not set (null or empty).
|
||||
* Do not check for 0 as it may be a valid value. */
|
||||
const isEmptyString = (value) => {
|
||||
return !!(value == null || value === "");
|
||||
}
|
||||
|
||||
/* This function check if value is null, or an empty array */
|
||||
const isEmptyArrayOrNull = (value) => {
|
||||
return !!(value == null || value.length === 0);
|
||||
|
|
@ -22,6 +28,7 @@ const isEmptyArrayOrNull = (value) => {
|
|||
|
||||
const dataUtils = function () {
|
||||
return {
|
||||
isEmptyString,
|
||||
isEmptyOrNull,
|
||||
isEmptyArrayOrNull,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue