Add redirect after joining class
This commit is contained in:
parent
ca97a15398
commit
a59733b2f1
|
|
@ -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...'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue