mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update SearchResults.vue component
This commit is contained in:
parent
eef9e4e5e1
commit
2549049ab2
1 changed files with 9 additions and 7 deletions
|
@ -56,11 +56,11 @@
|
||||||
<p class="font-weight-bold text-truncate text-dark">
|
<p class="font-weight-bold text-truncate text-dark">
|
||||||
{{profile.value}}
|
{{profile.value}}
|
||||||
</p>
|
</p>
|
||||||
<p class="mb-0 text-center">
|
<!-- <p class="mb-0 text-center">
|
||||||
<button :class="[profile.entity.following ? 'btn btn-secondary btn-sm py-1 font-weight-bold' : 'btn btn-primary btn-sm py-1 font-weight-bold']" v-on:click="followProfile(profile.entity.id)">
|
<button :class="[profile.entity.following ? 'btn btn-secondary btn-sm py-1 font-weight-bold' : 'btn btn-primary btn-sm py-1 font-weight-bold']" v-on:click="followProfile(profile.entity.id)">
|
||||||
{{profile.entity.following ? 'Unfollow' : 'Follow'}}
|
{{profile.entity.following ? 'Unfollow' : 'Follow'}}
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p> -->
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,11 +138,13 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
followProfile(id) {
|
followProfile(id) {
|
||||||
axios.post('/i/follow', {
|
// todo: finish AP Accept handling to enable remote follows
|
||||||
item: id
|
return;
|
||||||
}).then(res => {
|
// axios.post('/i/follow', {
|
||||||
window.location.href = window.location.href;
|
// item: id
|
||||||
});
|
// }).then(res => {
|
||||||
|
// window.location.href = window.location.href;
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue