mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update ComposeModal, fix post redirect on old UI
This commit is contained in:
parent
95a2cb970f
commit
160e32a590
1 changed files with 2 additions and 1 deletions
|
@ -1262,7 +1262,7 @@ export default {
|
||||||
if(location.pathname === '/i/web/compose' && res.data && res.data.length) {
|
if(location.pathname === '/i/web/compose' && res.data && res.data.length) {
|
||||||
location.href = '/i/web/post/' + res.data.split('/').slice(-1)[0];
|
location.href = '/i/web/post/' + res.data.split('/').slice(-1)[0];
|
||||||
} else {
|
} else {
|
||||||
location.href = data;
|
location.href = res.data;
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
if(err.response) {
|
if(err.response) {
|
||||||
|
@ -1330,6 +1330,7 @@ export default {
|
||||||
|
|
||||||
closeModal() {
|
closeModal() {
|
||||||
$('#composeModal').modal('hide');
|
$('#composeModal').modal('hide');
|
||||||
|
this.$emit('close');
|
||||||
},
|
},
|
||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
|
|
Loading…
Reference in a new issue