Update PostComponent.vue

This commit is contained in:
Daniel Supernault 2019-03-03 19:34:45 -07:00
parent ed2d9d070a
commit 9659d06f52
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -277,10 +277,6 @@ export default {
}
}
if(this.status) {
let title = this.status.account.username + ' posted a photo: ' + this.status.favourites_count + ' likes';
$('head title').text(title);
}
},
methods: {
@ -338,6 +334,7 @@ export default {
$('.postComponent').removeClass('d-none');
$('.postPresenterLoader').addClass('d-none');
$('.postPresenterContainer').removeClass('d-none');
$('head title').text(this.status.account.username + ' posted a photo: ' + this.status.favourites_count + ' likes');
}).catch(error => {
if(!error.response) {
$('.postPresenterLoader .lds-ring').attr('style','width:100%').addClass('pt-4 font-weight-bold text-muted').text('An error occurred, cannot fetch media. Please try again later.');