update texts of pdf generation status toasts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
close #44
This commit is contained in:
@@ -88,16 +88,16 @@ const state = reactive({
|
||||
const toast = useToast();
|
||||
function resendMail() {
|
||||
if (isEmail(user_email.value)) {
|
||||
toast("sending password reset mail...");
|
||||
toast("Login-Link wird angefordert...");
|
||||
const browserlocale = ((navigator.languages && navigator.languages[0]) || '').substr(0, 2);
|
||||
axios.post(`${config.baseurl}api/runners/forgot?mail=${user_email.value}&locale=${browserlocale}`)
|
||||
.then(({ data }) => {
|
||||
console.log(data);
|
||||
toast("sent password reset mail to " + user_email.value + "!");
|
||||
toast("Login-Link gesendet an " + user_email.value + "!");
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error);
|
||||
toast("user does not exist...");
|
||||
toast("Fehler beim Anfordern des Login-Links...");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user