Improve readability
This commit is contained in:
parent
cefd2a4c54
commit
ee39d9594e
@ -258,9 +258,7 @@ export default Vue.extend({
|
||||
type: 'success',
|
||||
text: this.$t('page-updated')
|
||||
});
|
||||
}).catch(err => {
|
||||
onError(err);
|
||||
});
|
||||
}).catch(onError);
|
||||
} else {
|
||||
this.$root.api('pages/create', options)
|
||||
.then(page => {
|
||||
@ -271,9 +269,7 @@ export default Vue.extend({
|
||||
text: this.$t('page-created')
|
||||
});
|
||||
this.$router.push(`/i/pages/edit/${this.pageId}`);
|
||||
}).catch(err => {
|
||||
onError(err);
|
||||
});
|
||||
}).catch(onError);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user