Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Js ofmcc 2 provider login3 #21

Merged
merged 19 commits into from
Oct 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Header layout updates and cleanup.
weskubo-cgi authored and weskubo-cgi committed Oct 18, 2023
commit e57aae21de8a90ef1e5c2c56e4cffb67e11a22fc
31 changes: 17 additions & 14 deletions frontend/src/components/TheHeader.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-app-bar absolute color="rgb(0, 51, 102)" class="pl-10 pr-10 sysBar" style="z-index: 1002">
<!-- Navbar content -->
<v-container class="ma-0" :class="{ sizingForIconXLScreen: xl }">
<v-container class="ma-0" :class="{ sizingForIconXLScreen: xl }" style="width: 100%" fluid="true">
<v-row class="justify-space-between">
<a tabindex="-1" href="/">
<img tabindex="-1" src="@/assets/images/bc-gov-logo.svg" class="logo" alt="B.C. Government Logo" />
@@ -35,32 +35,25 @@
</v-menu>
</div> -->
<div class="logout" v-if="isAuthenticated">
<v-btn :href="routes.LOGOUT" variant="plain" color="white">Log out</v-btn>
<v-btn :href="routes.LOGOUT" variant="plain" class="logout-link">Log out</v-btn>
</div>
</v-row>
</v-container>
</v-app-bar>
</template>

<script>
import { mapGetters, mapState } from 'pinia'
import { mapState } from 'pinia'
import { Routes } from '@/utils/constants'
import { useAuthStore } from '@/stores/auth'
//import router from '@/router'

export default {
data() {
return {
routes: Routes,
user: null,
}
},
created() {
console.log('created = ' + this.userInfo)
},
watch: {},
computed: {
//...mapGetters(useAuthStore, ['isAuthenticated', 'userInfo']),
...mapState(useAuthStore, ['userInfo', 'isAuthenticated']),
unreadMessageCount() {
return Math.floor(Math.random() * 10)
@@ -79,10 +72,6 @@ export default {
return this.$vuetify.display.xs
},
},
methods: {
// ...mapActions(useAuthStore, ['getUserInfo']),
// useAuthStore,
},
}
</script>

@@ -110,6 +99,20 @@ a {
display: flex;
justify-content: center;
align-items: center;
float: right;
}

.logout-link {
text-decoration: underline;
font-size: 1rem;
line-height: 2.25rem;
color: #ffffff;
cursor: pointer;
opacity: 1;
}

.logout-link:hover {
text-decoration: none;
}

.verticalLine {