We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc827cf + cb742c8 commit 0536320Copy full SHA for 0536320
1 file changed
src/components/profile/Profile.vue
@@ -1,5 +1,15 @@
1
<template>
2
- <main class="profile">
+ <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
11
+ v-if="typeof(accessInformation) != 'undefined'"
12
13
<div
14
:class="
15
'profile__section' +
@@ -233,6 +243,7 @@
233
243
></ViewKeys>
234
244
</template>
235
245
</ProfileSection>
246
236
247
</main>
237
248
238
249
@@ -343,7 +354,11 @@ export default {
343
354
};
344
355
},
345
356
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
+ }
347
362
348
363
identitiesWrapper() {
349
364
return new Identities(this.identities);
0 commit comments