update texts of pdf generation status toasts
All checks were successful
continuous-integration/drone/push Build is passing

close #44
This commit is contained in:
2023-01-31 13:45:28 +01:00
parent 1249248a9d
commit a030f6b738
5 changed files with 14 additions and 14 deletions

View File

@@ -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...");
});
}
}