hide overflow menu for same-user profile (#136)

Fixes #130
This commit is contained in:
Nolan Lawson 2018-04-15 15:39:54 -07:00 committed by GitHub
parent d9ae0666c2
commit a21541ce4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 9 deletions

View file

@ -23,14 +23,17 @@
{{numFollowersDisplay}} {{numFollowersDisplay}}
</span> </span>
</div> </div>
<div class="account-profile-more-options"> <!-- TODO: re-enable this when we support profile editing -->
<IconButton {{#if account && verifyCredentials && account.id !== verifyCredentials.id}}
label="More options" <div class="account-profile-more-options">
href="#fa-bars" <IconButton
muted="true" label="More options"
on:click="onMoreOptionsClick()" href="#fa-bars"
/> muted="true"
</div> on:click="onMoreOptionsClick()"
/>
</div>
{{/if}}
</div> </div>
<style> <style>
.account-profile-details { .account-profile-details {

View file

@ -62,7 +62,7 @@
} }
return relationship && relationship.following return relationship && relationship.following
}, },
blocking: (relationship) => relationship.blocking, blocking: (relationship) => relationship && relationship.blocking,
followRequested: (relationship, account) => { followRequested: (relationship, account) => {
return relationship && relationship.requested && account && account.locked return relationship && relationship.requested && account && account.locked
}, },