Add email field to Client

This commit is contained in:
Jose Hernandez
2022-04-27 20:11:47 -05:00
parent c938cf7763
commit d366f32dfd
12 changed files with 87 additions and 55 deletions
+10
View File
@@ -30,6 +30,13 @@ export class SettingsService {
localStorage.setItem('mifosXLanguage', JSON.stringify(language));
}
setDefaultLanguage() {
this.setLanguage({
name: environment.defaultLanguage,
code: environment.defaultLanguage.substring(0, 2)
});
}
/**
* Sets server URL setting throughout the app.
* @param {string} url URL
@@ -57,6 +64,9 @@ export class SettingsService {
* Returns language setting
*/
get language() {
if (!localStorage.getItem('mifosXLanguage')) {
this.setDefaultLanguage();
}
return JSON.parse(localStorage.getItem('mifosXLanguage'));
}