mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update profile.vue component
This commit is contained in:
parent
2de2ad9d94
commit
4408e18293
1 changed files with 10 additions and 13 deletions
|
@ -138,7 +138,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-block d-md-none my-0 border-bottom">
|
<div class="d-block d-md-none my-0 pt-3 border-bottom">
|
||||||
<p v-if="user && user.hasOwnProperty('id')" class="pt-3">
|
<p v-if="user && user.hasOwnProperty('id')" class="pt-3">
|
||||||
<button v-if="owner" class="btn btn-outline-secondary bg-white btn-sm py-1 btn-block text-center font-weight-bold text-dark border border-lighter" @click.prevent="redirect('/settings/home')">Edit Profile</button>
|
<button v-if="owner" class="btn btn-outline-secondary bg-white btn-sm py-1 btn-block text-center font-weight-bold text-dark border border-lighter" @click.prevent="redirect('/settings/home')">Edit Profile</button>
|
||||||
<button v-if="!owner && relationship.following" class="btn btn-outline-secondary bg-white btn-sm py-1 px-5 font-weight-bold text-dark border border-lighter" @click="followProfile"> Unfollow </button>
|
<button v-if="!owner && relationship.following" class="btn btn-outline-secondary bg-white btn-sm py-1 px-5 font-weight-bold text-dark border border-lighter" @click="followProfile"> Unfollow </button>
|
||||||
|
@ -423,28 +423,28 @@
|
||||||
<div class="list-group-item cursor-pointer text-center rounded text-dark" @click="copyProfileLink">
|
<div class="list-group-item cursor-pointer text-center rounded text-dark" @click="copyProfileLink">
|
||||||
Copy Link
|
Copy Link
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!owner && !relationship.following" class="list-group-item cursor-pointer text-center rounded text-dark" @click="followProfile">
|
<div v-if="user && !owner && !relationship.following" class="list-group-item cursor-pointer text-center rounded text-dark" @click="followProfile">
|
||||||
Follow
|
Follow
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!owner && relationship.following" class="list-group-item cursor-pointer text-center rounded" @click="followProfile">
|
<div v-if="user && !owner && relationship.following" class="list-group-item cursor-pointer text-center rounded" @click="followProfile">
|
||||||
Unfollow
|
Unfollow
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!owner && !relationship.muting" class="list-group-item cursor-pointer text-center rounded" @click="muteProfile">
|
<div v-if="user && !owner && !relationship.muting" class="list-group-item cursor-pointer text-center rounded" @click="muteProfile">
|
||||||
Mute
|
Mute
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!owner && relationship.muting" class="list-group-item cursor-pointer text-center rounded" @click="unmuteProfile">
|
<div v-if="user && !owner && relationship.muting" class="list-group-item cursor-pointer text-center rounded" @click="unmuteProfile">
|
||||||
Unmute
|
Unmute
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!owner" class="list-group-item cursor-pointer text-center rounded text-dark" @click="reportProfile">
|
<div v-if="user && !owner" class="list-group-item cursor-pointer text-center rounded text-dark" @click="reportProfile">
|
||||||
Report User
|
Report User
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!owner && !relationship.blocking" class="list-group-item cursor-pointer text-center rounded text-dark" @click="blockProfile">
|
<div v-if="user && !owner && !relationship.blocking" class="list-group-item cursor-pointer text-center rounded text-dark" @click="blockProfile">
|
||||||
Block
|
Block
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!owner && relationship.blocking" class="list-group-item cursor-pointer text-center rounded text-dark" @click="unblockProfile">
|
<div v-if="user && !owner && relationship.blocking" class="list-group-item cursor-pointer text-center rounded text-dark" @click="unblockProfile">
|
||||||
Unblock
|
Unblock
|
||||||
</div>
|
</div>
|
||||||
<div v-if="owner" class="list-group-item cursor-pointer text-center rounded text-dark" @click="redirect('/settings/home')">
|
<div v-if="user && owner" class="list-group-item cursor-pointer text-center rounded text-dark" @click="redirect('/settings/home')">
|
||||||
Settings
|
Settings
|
||||||
</div>
|
</div>
|
||||||
<div class="list-group-item cursor-pointer text-center rounded text-muted" @click="$refs.visitorContextMenu.hide()">
|
<div class="list-group-item cursor-pointer text-center rounded text-muted" @click="$refs.visitorContextMenu.hide()">
|
||||||
|
@ -522,7 +522,7 @@
|
||||||
return {
|
return {
|
||||||
ids: [],
|
ids: [],
|
||||||
profile: {},
|
profile: {},
|
||||||
user: {},
|
user: false,
|
||||||
timeline: [],
|
timeline: [],
|
||||||
timelinePage: 2,
|
timelinePage: 2,
|
||||||
min_id: 0,
|
min_id: 0,
|
||||||
|
@ -1084,9 +1084,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
visitorMenu() {
|
visitorMenu() {
|
||||||
if($('body').hasClass('loggedIn') == false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$refs.visitorContextMenu.show();
|
this.$refs.visitorContextMenu.show();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue