Skip to content

Commit

Permalink
Merge branch 'development_1.1' into development_1.1_mail_service
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-Emad committed Feb 7, 2024
2 parents b2ea45c + 6660970 commit 7de665f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/components/CshrToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ export default {
setup() {
const $api = useApi()
const user = useAsyncState(() => $api.myprofile.getUser(), null)
setTimeout(() => {
if(!user.state.value){
window.location.href = "/login"
}
}, 1000)
const notifications = useAsyncState(() => $api.notifications.list(), [])
const selectedNotification = ref<Api.Returns.Notification>()
Expand Down

0 comments on commit 7de665f

Please sign in to comment.