Activity
- Refresh
+ Refresh
Sent
@@ -13060,7 +13069,7 @@
floGlobals.appObjects[token_app.master_configurations.TYPE_CASHIER_LIVE_STATUS][myFloID] = status;
let receiverID = floGlobals.adminID;
floCloudAPI.updateObjectData(token_app.master_configurations.TYPE_CASHIER_LIVE_STATUS, { receiverID })
- .then(res=>notify('Updated Cashier status to '+status))
+ .then(res=>notify(`Cashier is ${status ? 'online' : 'offline'}`, 'success'))
.catch(e=>{
console.error(e);
notify('Failed to update Cashier status to '+status, 'error');
@@ -13243,8 +13252,8 @@
}
}
- function showActivities(){
- if(!activityLoaded){
+ function showActivities(showRefresh = false){
+ if(!activityLoaded || showRefresh){
depositActivityContainer.innerHTML = ''
withdrawActivityContainer.innerHTML = ''
payCashierActivityContainer.innerHTML = ''