update texts of pdf generation status toasts
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
close #44
This commit is contained in:
parent
1249248a9d
commit
a030f6b738
|
@ -101,7 +101,7 @@ function login() {
|
|||
axios.get("").then((res) => {
|
||||
loading.value = false;
|
||||
Toastify({
|
||||
text: "This is a toast",
|
||||
text: "Login läuft...",
|
||||
duration: 3000,
|
||||
}).showToast();
|
||||
});
|
||||
|
|
|
@ -101,7 +101,7 @@ function login() {
|
|||
axios.get("").then((res) => {
|
||||
loading.value = false;
|
||||
Toastify({
|
||||
text: "This is a toast",
|
||||
text: "Login läuft...",
|
||||
duration: 3000,
|
||||
}).showToast();
|
||||
});
|
||||
|
|
|
@ -359,7 +359,7 @@ axios.get(`${config.baseurl}api/runners/me/${accesstoken}`)
|
|||
state.sponsorings = data.distanceDonations;
|
||||
state.fullobject = data;
|
||||
}).catch((error) => {
|
||||
toast.error("An error occured while loading your profile data");
|
||||
toast.error("Profil konnte nicht geladen werden...");
|
||||
})
|
||||
axios.get(`${config.baseurl}api/runners/me/${accesstoken}/scans`)
|
||||
.then(({ data }) => {
|
||||
|
@ -371,22 +371,22 @@ axios.get(`${config.baseurl}api/runners/me/${accesstoken}/scans`)
|
|||
data.filter(s => s.valid === true);
|
||||
state.scans = data;
|
||||
}).catch((error) => {
|
||||
toast.error("An error occured while loading your profile data");
|
||||
toast.error("Profil konnte nicht geladen werden...");
|
||||
})
|
||||
function delete_me() {
|
||||
toast("Deletion in progress...");
|
||||
toast("Profil wird gelöscht...");
|
||||
let url = `${config.baseurl}api/runners/me/${accesstoken}?force=true`
|
||||
axios.delete(url)
|
||||
.then(() => {
|
||||
toast("All Data deleted!");
|
||||
toast("Alle Daten gelöscht!");
|
||||
location.replace(`${config.baseurl_selfservice}`);
|
||||
})
|
||||
.catch((error) => {
|
||||
toast.error("An error occured while deleting your profile data");
|
||||
toast.error("Profil konnte nicht gelöscht werden...");
|
||||
});
|
||||
}
|
||||
function get_certificate() {
|
||||
toast("Generation in progress...");
|
||||
toast("Urkunde wird generiert...");
|
||||
const browserlocale = ((navigator.languages && navigator.languages[0]) || '').substr(0, 2);
|
||||
let url = `${config.baseurl_documentserver}certificates?locale=${browserlocale}&download=true&key=${config.documentserver_key}`;
|
||||
let postdata = Object.assign({}, state.fullobject);
|
||||
|
@ -400,7 +400,7 @@ function get_certificate() {
|
|||
.then((response) => {
|
||||
console.log(response)
|
||||
if (response.status != "200") {
|
||||
toast.error("An error occured while generateing your certificate!");
|
||||
toast.error("Urkunde konnte nicht generiert werden...");
|
||||
} else {
|
||||
var fileURL = window.URL.createObjectURL(new Blob([response.data], { type: 'application/pdf' }));
|
||||
var fileLink = document.createElement('a');
|
||||
|
@ -411,7 +411,7 @@ function get_certificate() {
|
|||
|
||||
fileLink.click();
|
||||
fileLink.remove();
|
||||
toast("Document generated!");
|
||||
toast("Urkunde generiert!");
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
|
@ -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...");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -301,7 +301,7 @@ function login() {
|
|||
if (state.org_name !== '' && state.org_teams.length > 0) {
|
||||
postdata.team = org_team.value;
|
||||
}
|
||||
toast("registration in progress...");
|
||||
toast("Registrierung läuft...");
|
||||
const browserlocale = ((navigator.languages && navigator.languages[0]) || '').substr(0, 2);
|
||||
let url = `${config.baseurl}api/runners/register/?locale=${browserlocale}`;
|
||||
if (props.token) {
|
||||
|
|
Loading…
Reference in New Issue