Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle state not exposed - missing functionality #7

Open
sdwr opened this issue Jan 15, 2024 · 0 comments
Open

Idle state not exposed - missing functionality #7

sdwr opened this issue Jan 15, 2024 · 0 comments

Comments

@sdwr
Copy link

sdwr commented Jan 15, 2024

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>
@sdwr sdwr changed the title No available idle state or trigger when idle is cancelled Idle state not exposed - missing functionality Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant