-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature flag and initial setup for My Profile page (#1943)
* Sets up flag for profile features * Applies flag to my-profile route * Hides the tab nav in the Layout component when routing to /my-profile * fixes formatting in Layout.vue * Adds view MyProfile.vue * Fixes terraform formatting * changes hideTabs to showTabs and updates logic * adds static content and styling * gets logged in user and displays user details dynamically * fixes formatting errors
- Loading branch information
1 parent
6d9dbb7
commit d4c439a
Showing
8 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
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
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> | ||
<section style="max-width: 516px;" class="mx-auto my-5 px-2"> | ||
<h2>My Profile</h2> | ||
<b-row style="margin-top: 4rem;"> | ||
<b-col> | ||
<b-avatar :text="initials" size="5rem"></b-avatar> | ||
</b-col> | ||
<b-col cols="7"> | ||
<p class="mb-2 h6"><b>{{ name }}</b></p> | ||
<p class="mb-2">{{ email }}</p> | ||
<p class="mb-2">{{ agency }}</p> | ||
</b-col> | ||
<b-col class="text-end"> | ||
<b-button variant="primary" size="md"> | ||
<b-icon icon="pencil-fill" scale="0.8"></b-icon> | ||
<span class="ml-1">Edit</span> | ||
</b-button> | ||
</b-col> | ||
</b-row> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
import { mapGetters } from 'vuex'; | ||
export default { | ||
computed: { | ||
...mapGetters({ | ||
loggedInUser: 'users/loggedInUser', | ||
}), | ||
name() { | ||
return this.loggedInUser.name; | ||
}, | ||
email() { | ||
return this.loggedInUser.email; | ||
}, | ||
agency() { | ||
return this.loggedInUser.agency_name; | ||
}, | ||
initials() { | ||
const fullNameArr = this.name.split(' '); | ||
const firstName = fullNameArr.at(0); | ||
const lastName = fullNameArr.at(-1); | ||
return (firstName[0] + lastName[0]).toUpperCase(); | ||
}, | ||
}, | ||
}; | ||
</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