Skip to content

Commit

Permalink
Merge pull request #649 from rtucker-mozilla/master
Browse files Browse the repository at this point in the history
Displaying message on profile page that logging in is required
  • Loading branch information
rtucker-mozilla authored May 20, 2021
2 parents bc827cf + cb742c8 commit 0536320
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/components/profile/Profile.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<template>
<main class="profile">
<main class="profile" >
<div
v-if="typeof(accessInformation) === 'undefined'"
>
<p>
You must login to view profile.
</p>
</div>
<div
v-if="typeof(accessInformation) != 'undefined'"
>
<div
:class="
'profile__section' +
Expand Down Expand Up @@ -233,6 +243,7 @@
></ViewKeys>
</template>
</ProfileSection>
</div>
</main>
</template>

Expand Down Expand Up @@ -343,7 +354,11 @@ export default {
};
},
userOnOwnProfile() {
return this.$store.state.scope.uuid === this.uuid.value;
try {
return this.$store.state.scope.uuid === this.uuid.value;
} catch(e){
return false;
}
},
identitiesWrapper() {
return new Identities(this.identities);
Expand Down

0 comments on commit 0536320

Please sign in to comment.