Skip to content

Idle state not exposed - missing functionality #7

Description

@sdwr

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions