Moved active monitoring page to vuejs

This commit is contained in:
Matteo Biscosi 2025-01-28 18:11:27 +01:00
parent 0a2b1e8bb9
commit 963579b526
18 changed files with 1469 additions and 3 deletions

View file

@ -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,
};