add translation
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
dc605387ba
commit
d2cbaa565e
|
@ -35,10 +35,12 @@ export default class Auth {
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
let redirectToLogin = () => {
|
let redirectToLogin = () => {
|
||||||
return transition.router.stateService.target('login');
|
return transition.router.stateService.target('login', {
|
||||||
|
continue: this.$window.location.hash
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.vnToken.token || this) {
|
if (this.vnToken.token) {
|
||||||
return this.loadAcls()
|
return this.loadAcls()
|
||||||
.then(() => true)
|
.then(() => true)
|
||||||
.catch(redirectToLogin);
|
.catch(redirectToLogin);
|
||||||
|
|
|
@ -11,6 +11,7 @@ function interceptor($q, vnApp, vnToken, $translate) {
|
||||||
},
|
},
|
||||||
request(config) {
|
request(config) {
|
||||||
vnApp.pushLoader();
|
vnApp.pushLoader();
|
||||||
|
|
||||||
if (config.url.charAt(0) !== '/' && apiPath)
|
if (config.url.charAt(0) !== '/' && apiPath)
|
||||||
config.url = `${apiPath}${config.url}`;
|
config.url = `${apiPath}${config.url}`;
|
||||||
if (vnToken.token)
|
if (vnToken.token)
|
||||||
|
|
|
@ -237,5 +237,7 @@
|
||||||
"Recover password": "Recuperar contraseña",
|
"Recover password": "Recuperar contraseña",
|
||||||
"Click on the following link to change your password.": "Pulsa en el siguiente link para cambiar tu contraseña.",
|
"Click on the following link to change your password.": "Pulsa en el siguiente link para cambiar tu contraseña.",
|
||||||
"Verify email": "Verificar correo",
|
"Verify email": "Verificar correo",
|
||||||
"Click on the following link to verify this email. If you haven't requested this email, just ignore it": "Pulsa en el siguiente link para verificar este correo. Si no has pedido este correo, simplemente ignóralo."
|
"Click on the following link to verify this email. If you haven't requested this email, just ignore it": "Pulsa en el siguiente link para verificar este correo. Si no has pedido este correo, simplemente ignóralo.",
|
||||||
}
|
"Click on the following link to change your password": "Click on the following link to change your password",
|
||||||
|
"Landing cannot be lesser than shipment": "Landing cannot be lesser than shipment"
|
||||||
|
}
|
|
@ -9,7 +9,7 @@ export default class Controller extends Section {
|
||||||
};
|
};
|
||||||
return this.$http.patch(`Accounts/${this.$params.id}`, params)
|
return this.$http.patch(`Accounts/${this.$params.id}`, params)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.vnApp.showSuccess(this.$t('Data saved!'));
|
this.vnApp.showSuccess(this.$t('Email verified successfully!'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Email verified successfully!: Correo verificado correctamente!
|
Loading…
Reference in New Issue