Commit e2713d6b authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Address ZeHiro comments;

parent 5398752c
Pipeline #14793 passed with stage
in 2 minutes and 36 seconds
......@@ -849,7 +849,7 @@ function reduceCreateAccess(state, action) {
}
debug('Creating access...');
return u({ processingReason: $t('client.spinner.create_account') }, state);
return u({ processingReason: $t('client.spinner.fetch_account') }, state);
}
function reduceUpdateAccess(state, action) {
......
......@@ -52,7 +52,7 @@ const basic = {
};
},
updateAccess(results = null) {
updateAccess(results = {}) {
return {
type: UPDATE_ACCESS,
results
......@@ -245,16 +245,16 @@ function reduceUpdateAccess(state, action) {
if (status === SUCCESS) {
debug('Successfully updated access');
// Nothing to do yet: accesses are not locally saved.
return state;
return u({ processingReason: null }, state);
}
if (status === FAIL) {
debug('Error when updating access', action.error);
return state;
return u({ processingReason: null }, state);
}
debug('Updating access...');
return state;
return u({ processingReason: $t('client.spinner.fetch_account') }, state);
}
function reduceImportInstance(state, action) {
......
......@@ -420,9 +420,9 @@ module.exports = {
},
spinner: {
title: "Please wait...",
title: "Please wait",
balance_resync: "Resynchronizing your account's balance…",
create_account: "Connecting to your bank's website and fetching all the accounts and transactions…",
fetch_account: "Connecting to your bank's website and fetching all the accounts and transactions…",
delete_account: "Deleting your account and associated data from Kresus…",
generic: "Kresus is processing your demand, hang tight!",
import: 'Importing your backup data into Kresus…',
......
......@@ -422,7 +422,7 @@ module.exports = {
spinner: {
title: "Veuillez patienter…",
balance_resync: "Resynchronisation de votre balance en cours…",
create_account: "Connexion au site de votre banque et import des comptes et opérations en cours…",
fetch_account: "Connexion au site de votre banque et import des comptes et opérations en cours…",
delete_account: "Suppression de votre compte et des données associées en cours…",
generic: "Kresus est en train d'exécuter vos souhaits, à tout de suite !",
import: 'Import de votre instance sauvegardée en cours…',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment