Add redirect after joining class

This commit is contained in:
Ramon Wenger 2020-02-24 16:23:55 +01:00
parent ca97a15398
commit a59733b2f1
2 changed files with 8 additions and 5 deletions

View File

@ -89,7 +89,6 @@
spellcheckText() {
if (!this.spellcheckLoading) {
return 'Rechtschreibung prüfen'
} else {
return 'Wird geprüft...'
}

View File

@ -59,11 +59,15 @@
}
}
}
}).catch(e => {
console.debug(e);
console.error(e.message)
this.error = 'Code ist nicht gültig';
})
.then(() => {
this.$router.push({name: 'my-classes'});
})
.catch(e => {
console.debug(e);
console.error(e.message);
this.error = 'Code ist nicht gültig';
})
},
cancel() {
this.$router.go(-1);