forked from mirror/pixelfed
Update ContextMenu, add missing statusUrl method
This commit is contained in:
parent
9ac8bbde91
commit
3cffdb116f
1 changed files with 9 additions and 0 deletions
|
@ -583,6 +583,7 @@
|
||||||
swal('Success', 'Successfully marked account as spammer', 'success');
|
swal('Success', 'Successfully marked account as spammer', 'success');
|
||||||
self.ctxModMenuClose();
|
self.ctxModMenuClose();
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
console.log(err);
|
||||||
self.ctxModMenuClose();
|
self.ctxModMenuClose();
|
||||||
swal(
|
swal(
|
||||||
'Error',
|
'Error',
|
||||||
|
@ -617,6 +618,14 @@
|
||||||
swal('Error', 'Something went wrong, please try again later.', 'error');
|
swal('Error', 'Something went wrong, please try again later.', 'error');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
statusUrl(status) {
|
||||||
|
if(status.local == true) {
|
||||||
|
return status.url;
|
||||||
|
}
|
||||||
|
|
||||||
|
return '/i/web/post/_/' + status.account.id + '/' + status.id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue