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() { spellcheckText() {
if (!this.spellcheckLoading) { if (!this.spellcheckLoading) {
return 'Rechtschreibung prüfen' return 'Rechtschreibung prüfen'
} else { } else {
return 'Wird geprüft...' 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() { cancel() {
this.$router.go(-1); this.$router.go(-1);