mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-25 22:10:47 +00:00
Update Profile.vue component
This commit is contained in:
parent
1f1652fd00
commit
c47390d43d
1 changed files with 1 additions and 8 deletions
|
@ -19,11 +19,10 @@
|
||||||
<span class="pl-4" v-if="profile.is_admin">
|
<span class="pl-4" v-if="profile.is_admin">
|
||||||
<span class="btn btn-outline-danger font-weight-bold py-0">ADMIN</span>
|
<span class="btn btn-outline-danger font-weight-bold py-0">ADMIN</span>
|
||||||
</span>
|
</span>
|
||||||
<!-- @if($owner == true) -->
|
|
||||||
<span class="pl-4" v-if="owner">
|
<span class="pl-4" v-if="owner">
|
||||||
<a class="fas fa-cog fa-lg text-muted" href="/settings/home"></a>
|
<a class="fas fa-cog fa-lg text-muted" href="/settings/home"></a>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-if="!owner && user.hasOwnProperty('id')">
|
||||||
<span class="pl-4" v-if="relationship.following == true">
|
<span class="pl-4" v-if="relationship.following == true">
|
||||||
<button type="button" class="btn btn-outline-secondary font-weight-bold px-4 py-0" v-on:click="followProfile()">Unfollow</button>
|
<button type="button" class="btn btn-outline-secondary font-weight-bold px-4 py-0" v-on:click="followProfile()">Unfollow</button>
|
||||||
</span>
|
</span>
|
||||||
|
@ -292,12 +291,6 @@ export default {
|
||||||
});
|
});
|
||||||
axios.get('/api/v1/accounts/verify_credentials').then(res => {
|
axios.get('/api/v1/accounts/verify_credentials').then(res => {
|
||||||
this.user = res.data;
|
this.user = res.data;
|
||||||
}).catch(err => {
|
|
||||||
swal(
|
|
||||||
'Oops, something went wrong',
|
|
||||||
'Please reload the page.',
|
|
||||||
'error'
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
axios.get('/api/v1/accounts/relationships', {
|
axios.get('/api/v1/accounts/relationships', {
|
||||||
params: {
|
params: {
|
||||||
|
|
Loading…
Reference in a new issue