Update navbar, add avatar

This commit is contained in:
Daniel Supernault 2020-12-02 21:45:50 -07:00
parent 88fc867c07
commit 19abf1b4dc
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
15 changed files with 46 additions and 1 deletions

View file

@ -526,6 +526,10 @@ export default {
}).catch(error => {
swal('Oops!', 'An error occured, please try refreshing the page.', 'error');
});
axios.get('/api/pixelfed/v1/accounts/verify_credentials').then(res => {
window._sharedData.curUser = res.data;
window.App.util.navatar();
});
},
likesModal() {