Add modlog notifications

This commit is contained in:
Daniel Supernault 2020-02-21 21:00:00 -07:00
parent 6689a6fe3c
commit 51642fc40d
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
6 changed files with 171 additions and 12 deletions

View file

@ -675,9 +675,9 @@ export default {
},
fetchData() {
let self = this;
axios.get('/api/v2/profile/'+this.statusUsername+'/status/'+this.statusId)
.then(response => {
let self = this;
self.status = response.data.status;
self.user = response.data.user;
window._sharedData.curUser = self.user;
@ -696,15 +696,7 @@ export default {
this.loaded = true;
$('head title').text(this.status.account.username + ' posted a photo: ' + this.status.favourites_count + ' likes');
}).catch(error => {
if(!error.response) {
} else {
switch(error.response.status) {
case 401:
break;
default:
break;
}
}
swal('Oops!', 'An error occured, please try refreshing the page.', 'error');
});
},