Session Running and Stopping from menu and at task server

This commit is contained in:
Luis Fernando Molina committed 2019-10-03 22:05:27 +02:00
1 parent a876a15e42
commit ca576af89d
4 files changed
+37 -10

No files matched your search

+10 -1
View File
@@ -259,7 +259,16 @@ function newCircularMenuItem () {
return
}
function onPrimaryCallBack (err) {
function onPrimaryCallBack (err, event) {
/* While the primary action is being executed some event might have happen. Following we process the ones we can */
if (event !== undefined) {
if (event.type === 'Secondary Action Already Executed') {
setStatus(thisObject.secondaryWorkDoneLabel, UI_COLOR.PATINATED_TURQUOISE, 250, STATUS_SECONDARY_WORK_DONE)
return
}
}
/* If there is a secondary action we will act different that if there is not */
if (thisObject.secondaryAction === undefined) { // This means there are no more possible actions.
if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result) {