@fto-consult/expo-ui 7.8.8 → 7.8.10
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.
|
3
|
+
"version": "7.8.10",
|
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.
|
75
|
+
"@fto-consult/electron-gen": "^1.3.7",
|
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 StatusBar from "$ecomponents/StatusBar";
|
|
13
13
|
import ScrollView from "$ecomponents/ScrollView";
|
14
14
|
import KeyboardAvoidingView from "$ecomponents/KeyboardAvoidingView";
|
15
15
|
import {ScreenContext,useScreen} from "$econtext/hooks";
|
16
|
+
import {isElectron} from "$cplatform";
|
16
17
|
|
17
18
|
const getDefaultTitle = (nTitle,returnStr)=>{
|
18
19
|
let titleStr = React.getTextContent(nTitle);
|
@@ -90,6 +91,9 @@ export default function MainScreenScreenWithoutAuthContainer(props) {
|
|
90
91
|
subtitle :subtitle,
|
91
92
|
title : screenTitle,
|
92
93
|
});
|
94
|
+
if(isElectron() && typeof window?.ELECTRON !== "undefined" && typeof ELECTRON?.setTitle =='function'){
|
95
|
+
ELECTRON.setTitle(screenTitle);
|
96
|
+
}
|
93
97
|
}
|
94
98
|
}, [title,subtitle]);
|
95
99
|
const fab = withFab ? <Fab
|
@@ -94,9 +94,9 @@ export default function UserProfileScreen({fields,...p}){
|
|
94
94
|
Preloader.open("Modification en cours...");
|
95
95
|
const toSave = {...user,...data};
|
96
96
|
if(changeElectronUrl){
|
97
|
-
ELECTRON.
|
98
|
-
|
99
|
-
notify(`L'url de l'application a été définie à la valeur : ${
|
97
|
+
if(ELECTRON.getAppUrl() !== data.mainElectronAppUrl && isValidUrl(data.mainElectronAppUrl)){
|
98
|
+
ELECTRON.setAppUrl(data.mainElectronAppUrl);
|
99
|
+
notify.success(`L'url de l'application a été définie à la valeur : ${ELECTRON.getAppUrl()}. cette valeur sera prise en compte au rédémarrage de l'application`);
|
100
100
|
}
|
101
101
|
}
|
102
102
|
return Auth.upsertUser(toSave,true).then((response)=>{
|