Skip to content

Commit 0536320

Browse files
author
rtucker-mozilla
authored
Merge pull request #649 from rtucker-mozilla/master
Displaying message on profile page that logging in is required
2 parents bc827cf + cb742c8 commit 0536320

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

src/components/profile/Profile.vue

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<template>
2-
<main class="profile">
2+
<main class="profile" >
3+
<div
4+
v-if="typeof(accessInformation) === 'undefined'"
5+
>
6+
<p>
7+
You must login to view profile.
8+
</p>
9+
</div>
10+
<div
11+
v-if="typeof(accessInformation) != 'undefined'"
12+
>
313
<div
414
:class="
515
'profile__section' +
@@ -233,6 +243,7 @@
233243
></ViewKeys>
234244
</template>
235245
</ProfileSection>
246+
</div>
236247
</main>
237248
</template>
238249

@@ -343,7 +354,11 @@ export default {
343354
};
344355
},
345356
userOnOwnProfile() {
346-
return this.$store.state.scope.uuid === this.uuid.value;
357+
try {
358+
return this.$store.state.scope.uuid === this.uuid.value;
359+
} catch(e){
360+
return false;
361+
}
347362
},
348363
identitiesWrapper() {
349364
return new Identities(this.identities);

0 commit comments

Comments
 (0)