1
0
Fork 0
forked from mirror/pixelfed

Update SearchResult component

This commit is contained in:
Daniel Supernault 2019-04-08 14:20:31 -06:00
parent c4151c3751
commit 0f5e651179
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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>
@ -139,12 +139,11 @@ export default {
followProfile(id) { followProfile(id) {
// todo: finish AP Accept handling to enable remote follows // todo: finish AP Accept handling to enable remote follows
return; axios.post('/i/follow', {
// axios.post('/i/follow', { item: id
// item: id }).then(res => {
// }).then(res => { window.location.href = window.location.href;
// window.location.href = window.location.href; });
// });
}, },
} }