mirror of https://github.com/pixelfed/pixelfed.git
Update Timeline.vue component
This commit is contained in:
parent
93aa65d123
commit
5f61ac7157
|
@ -471,10 +471,10 @@
|
||||||
axios.get('/api/v2/config')
|
axios.get('/api/v2/config')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.config = res.data;
|
this.config = res.data;
|
||||||
this.fetchTimelineApi();
|
|
||||||
if(window.outerWidth > 767) {
|
if(window.outerWidth > 767) {
|
||||||
this.fetchProfile();
|
this.fetchProfile();
|
||||||
}
|
}
|
||||||
|
this.fetchTimelineApi();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -489,7 +489,6 @@
|
||||||
this.showSuggestions = true;
|
this.showSuggestions = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(localStorage.getItem('pf_metro_ui.exp.rm') == 'false') {
|
if(localStorage.getItem('pf_metro_ui.exp.rm') == 'false') {
|
||||||
this.showReadMore = false;
|
this.showReadMore = false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -523,6 +522,7 @@
|
||||||
$('.profile-card .loader').addClass('d-none');
|
$('.profile-card .loader').addClass('d-none');
|
||||||
$('.profile-card .contents').removeClass('d-none');
|
$('.profile-card .contents').removeClass('d-none');
|
||||||
$('.profile-card .card-footer').removeClass('d-none');
|
$('.profile-card .card-footer').removeClass('d-none');
|
||||||
|
this.expRec();
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
swal(
|
swal(
|
||||||
'Oops, something went wrong',
|
'Oops, something went wrong',
|
||||||
|
@ -561,7 +561,6 @@
|
||||||
this.max_id = Math.min(...ids);
|
this.max_id = Math.min(...ids);
|
||||||
$('.timeline .pagination').removeClass('d-none');
|
$('.timeline .pagination').removeClass('d-none');
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.expRec();
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue