This tool needs a way for the outside program to know whether the user is currently idle, or at least a function that triggers when the countdown is cancelled.
I'm trying to replace idle-vue with this, and can't.
Use case:
We have an overlay that pops up when the user is idle, that counts down until an automatic logout. The overlay should be closed and the timer cancelled if the user makes an input.
Can do the first half:
<v-idle
@idle="logoutOnIdle"
:duration="idleDuration"
@remind="openModal"
:reminders="[idleDuration - modalDuration]"
></v-idle>
but there's no way of cancelling the overlay if idle is broken.
To add the functionality:
- Add an "unidle" function that triggers when the user makes an input
<v-idle
@idle="logoutOnIdle"
:duration="idleDuration"
@remind="openModal"
:reminders="[idleDuration - modalDuration]"
@unidle="closeModal"
></v-idle>
This tool needs a way for the outside program to know whether the user is currently idle, or at least a function that triggers when the countdown is cancelled.
I'm trying to replace idle-vue with this, and can't.
Use case:
We have an overlay that pops up when the user is idle, that counts down until an automatic logout. The overlay should be closed and the timer cancelled if the user makes an input.
Can do the first half:
but there's no way of cancelling the overlay if idle is broken.
To add the functionality: