Skip to content
Snippets Groups Projects

Resolve "Resolve peer dependency warnings"

Merged Dominik Seeger requested to merge 150-resolve-peer-dependency-warnings into master
All threads resolved!
<template>
<v-dialog
v-model="logoutDialog"
persistent
max-width="30%"
v-model="logoutDialog"
>
<v-card id="logout-dialog">
<v-card-title class="headline">
You'll be logged out!
</v-card-title>
<v-card-text>
Due to inactivity you'll be logged out in a couple of moments.<br/>
Due to inactivity you'll be logged out in a couple of moments.<br>
Any unsaved work will be lost.
Click Continue to stay logged in.
</v-card-text>
<v-card-actions>
<v-btn flat color="grey lighten-0"
id="logout-btn"
@click="logout"
>Logout now</v-btn>
<v-spacer/>
<v-btn flat color="blue darken-2"
id="continue-btn"
@click="continueWork"
>Continue</v-btn>
<v-btn
id="logout-btn"
flat
color="grey lighten-0"
@click="logout"
>
Logout now
</v-btn>
<v-spacer />
<v-btn
id="continue-btn"
flat
color="blue darken-2"
@click="continueWork"
>
Continue
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@@ -72,7 +80,7 @@ export default class AutoLogout extends Vue {
mounted () {
// show notification on unload if logged in
window.onbeforeunload = event => {
window.onbeforeunload = (event: BeforeUnloadEvent) => {
if (Authentication.isLoggedIn) {
// return something to trigger the confirmation dialog
// since firefox 44 it is no longer possible to show a custom confirmation message
@@ -87,7 +95,7 @@ export default class AutoLogout extends Vue {
if (this.$route.name !== 'login' && Authentication.isLoggedIn) {
if (Date.now() > this.lastTokenRefreshTry + this.jwtTimeDelta) {
this.logoutDialog = false
actions.logout("You've been logged out due to inactivity.")
actions.logout('You\'ve been logged out due to inactivity.')
} else if (Date.now() + timeDialogAppearsBeforeLogout > this.lastTokenRefreshTry + this.jwtTimeDelta) {
this.logoutDialog = true
}
Loading