Update UiObject.js

This commit is contained in:
Luis Fernando Molina committed 2020-06-14 13:09:28 +02:00
1 parent 4cfcba0589
commit c79f2f2ce9
1 file changed
+21
+21
View File
@@ -732,6 +732,12 @@ function newUiObject () {
}
}
function resetValue () {
currentValue = undefined
hasValue = false
valueCounter = 0
}
function setPercentage (percentage, counter) {
if (percentage !== undefined) {
currentPercentage = percentage
@@ -744,6 +750,12 @@ function newUiObject () {
}
}
function resetPercentage () {
currentPercentage = undefined
hasPercentage = false
percentageCounter = 0
}
function setStatus (status, counter) {
if (status !== undefined) {
currentStatus = status
@@ -756,6 +768,12 @@ function newUiObject () {
}
}
function resetStatus () {
currentStatus = undefined
hasStatus = false
statusCounter = 0
}
function heartBeat () {
lastHeartBeat = new Date()
thisObject.isRunning = true
@@ -771,6 +789,9 @@ function newUiObject () {
function run (pEventsServerClient, callBackFunction) {
finalizeEventsServerClient()
resetErrorMessage()
resetPercentage()
resetValue()
resetStatus()
eventsServerClient = pEventsServerClient
/* We setup the circular progress bar. */