-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement timeout warning for SSO token timeout
feat: implement timeout warning for SSO token timeout
- Loading branch information
Showing
7 changed files
with
216 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<BaseDialog | ||
type="CONTINUE" | ||
:showCloseButton="true" | ||
:width="'50%'" | ||
:value="showTokenExpiredWarningMSg" | ||
@close-dialog=" | ||
() => { | ||
setTokenExpirationWarningDialog({ | ||
showTokenExpiredWarningMSg: false, | ||
resetToken: false, | ||
}); | ||
} | ||
" | ||
@continue-dialog=" | ||
() => { | ||
setTokenExpirationWarningDialog({ | ||
showTokenExpiredWarningMSg: false, | ||
resetToken: true, | ||
}); | ||
} | ||
" | ||
> | ||
<template #title><span>Session expiring</span></template> | ||
<template #text> | ||
<div class="text-display-4"> | ||
Your session will expire soon and you will be signed out automatically. | ||
</div> | ||
<div class="text-display-3 mt-3">Do you want to stay signed in?</div> | ||
</template> | ||
<template #button-text-continue> | ||
<span>Confirm</span> | ||
</template> | ||
</BaseDialog> | ||
</template> | ||
<script> | ||
import { mapActions, mapGetters } from 'vuex'; | ||
export default { | ||
name: 'BaseWarningDialog', | ||
computed: { | ||
...mapGetters('auth', ['showTokenExpiredWarningMSg']), | ||
}, | ||
methods: { | ||
...mapActions('auth', ['setTokenExpirationWarningDialog']), | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters