summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache
diff options
context:
space:
mode:
authorJoseph Caburnay <jcb@odoo.com>2020-07-02 12:12:34 +0000
committerJoseph Caburnay <jcb@odoo.com>2020-07-15 11:39:43 +0000
commitd51b56e20ddc86ef29661e2a93510432e7666680 (patch)
tree0c4877c0a252f1af0a2f745c526b8bac905046ab /addons/mail/static/src/models/thread_cache
parent4ed4ac54749dbf87df840109dfda3c9002c16fa3 (diff)
[FIX] pos_restaurant: idle timer not resetting properly
1. Idle timer is now reset also for touch events. 2. Using onWillUnmount and onMounted hooks to add event listener to window for detecting activities is not possible in this situation because setting the listener depends on a pos.config field (iface_floorplan) which is only available after 'start' is finished. (Remember that hooks are required to be set in the constructor.) So instead of using those hooks, we replicate them by using a global variable IDLE_TIMER_SETTER. This variable holds the bound method _setIdleTimer and set it as callback to each event listener. Then, before closing pos, we remove the listeners. 3. Close present temporary screen when going back to floor screen after idle timer. closes odoo/odoo#54498 X-original-commit: de1430d71890da24547fe24ba04dd28f59f77ee0 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache')
0 files changed, 0 insertions, 0 deletions