-
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
- Loading branch information
1 parent
ba404d7
commit 0b077ae
Showing
7 changed files
with
218 additions
and
4 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,53 @@ | ||
<script> | ||
import { mapState, mapActions } from 'pinia'; | ||
import { useAuthStore } from '~/store/auth'; | ||
import BaseDialog from '~/components/base/BaseDialog.vue'; | ||
export default { | ||
name: 'BaseWarningDialog', | ||
components: { | ||
BaseDialog, | ||
}, | ||
computed: { | ||
...mapState(useAuthStore, ['showTokenExpiredWarningMSg']), | ||
}, | ||
methods: { | ||
...mapActions(useAuthStore, ['setTokenExpirationWarningDialog']), | ||
}, | ||
}; | ||
</script> | ||
<template> | ||
<BaseDialog | ||
type="CONTINUE" | ||
:show-close-button="true" | ||
:width="'50%'" | ||
v-model="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> |
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