mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
Improve readability
This commit is contained in:
parent
cefd2a4c54
commit
ee39d9594e
1 changed files with 11 additions and 15 deletions
|
@ -258,9 +258,7 @@ export default Vue.extend({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
text: this.$t('page-updated')
|
text: this.$t('page-updated')
|
||||||
});
|
});
|
||||||
}).catch(err => {
|
}).catch(onError);
|
||||||
onError(err);
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
this.$root.api('pages/create', options)
|
this.$root.api('pages/create', options)
|
||||||
.then(page => {
|
.then(page => {
|
||||||
|
@ -271,9 +269,7 @@ export default Vue.extend({
|
||||||
text: this.$t('page-created')
|
text: this.$t('page-created')
|
||||||
});
|
});
|
||||||
this.$router.push(`/i/pages/edit/${this.pageId}`);
|
this.$router.push(`/i/pages/edit/${this.pageId}`);
|
||||||
}).catch(err => {
|
}).catch(onError);
|
||||||
onError(err);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue