@fto-consult/expo-ui 7.8.6 → 7.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.8.6",
3
+ "version": "7.8.8",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -72,7 +72,7 @@
72
72
  "@expo/vector-icons": "^13.0.0",
73
73
  "@faker-js/faker": "^8.0.2",
74
74
  "@fto-consult/common": "^3.75.2",
75
- "@fto-consult/electron-gen": "^1.3.5",
75
+ "@fto-consult/electron-gen": "^1.3.6",
76
76
  "@pchmn/expo-material3-theme": "^1.3.1",
77
77
  "@react-native-async-storage/async-storage": "1.18.2",
78
78
  "@react-native-community/datetimepicker": "7.2.0",
@@ -13,6 +13,7 @@ import APP from "$capp/instance";
13
13
  import {isElectron} from "$cplatform";
14
14
  import {isValidUrl} from "$cutils";
15
15
  import {screenName} from "./utils";
16
+ import notify from "$notify";
16
17
 
17
18
  export default function UserProfileScreen({fields,...p}){
18
19
  const {auth:{profilePropsMutator}} = useContext();
@@ -92,10 +93,13 @@ export default function UserProfileScreen({fields,...p}){
92
93
  data.theme = themeRef.current;
93
94
  Preloader.open("Modification en cours...");
94
95
  const toSave = {...user,...data};
95
- return Auth.upsertUser(toSave,true).then((response)=>{
96
- if(changeElectronUrl){
97
- ELECTRON.setAppUrl(data.mainElectronAppUrl);
96
+ if(changeElectronUrl){
97
+ ELECTRON.setAppUrl(data.mainElectronAppUrl);
98
+ if(ELECTRON.getAppUrl() === data.mainElectronAppUrl){
99
+ notify(`L'url de l'application a été définie à la valeur : ${data.mainElectronAppUrl}. cette valeur sera prise en compte au rédémarrage de l'application`);
98
100
  }
101
+ }
102
+ return Auth.upsertUser(toSave,true).then((response)=>{
99
103
  setTimeout(()=>{
100
104
  APP.trigger(APP.EVENTS.UPDATE_THEME,user.theme);
101
105
  APP.trigger(APP.EVENTS.AUTH_UPDATE_PROFILE,toSave);