Add redirect after joining class
This commit is contained in:
parent
ca97a15398
commit
a59733b2f1
|
|
@ -89,7 +89,6 @@
|
|||
spellcheckText() {
|
||||
if (!this.spellcheckLoading) {
|
||||
return 'Rechtschreibung prüfen'
|
||||
|
||||
} else {
|
||||
return 'Wird geprüft...'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue