diff --git a/lib/Screens/Configurations/configuration_detail_screen.dart b/lib/Screens/Configurations/configuration_detail_screen.dart index 0ea5b20..e6f5159 100644 --- a/lib/Screens/Configurations/configuration_detail_screen.dart +++ b/lib/Screens/Configurations/configuration_detail_screen.dart @@ -98,11 +98,11 @@ class _ConfigurationDetailScreenState extends State { anchorElement.click(); } else { File test = await FileHelper().storeConfiguration(export); - showNotification(Colors.green, kWhite, "L'export de la visite a réussi, le document se trouve là : " + test.path, context, 3000); + showNotification(Colors.green, kWhite, "L'export de la configuration a réussi, le document se trouve à cet endroit : " + test.path, context, 3000); } } catch(e) { log(e.toString()); - showNotification(kPrimaryColor, kWhite, "L'export de la visite a échoué", context, null); + showNotification(kPrimaryColor, kWhite, "L'export de la configuration a échoué", context, null); } }, child: Padding( @@ -282,7 +282,7 @@ class _ConfigurationDetailScreenState extends State { ), if(!configurationDTO.isMobile!) ColorPickerInputContainer( - label: "Couleur pincipale :", + label: "Couleur principale :", fontSize: 20, color: configurationDTO.primaryColor, onChanged: (value) { @@ -489,7 +489,7 @@ class _ConfigurationDetailScreenState extends State { managerAppContext.selectedConfiguration = configuration; appContext.setContext(managerAppContext); - showNotification(Colors.green, kWhite, 'La visite a été sauvegardée avec succès', context, null); + showNotification(Colors.green, kWhite, 'La configuration a été sauvegardée avec succès', context, null); } Future getConfiguration(ConfigurationDetailScreen widget, Client client) async { diff --git a/lib/Screens/Configurations/new_configuration_popup.dart b/lib/Screens/Configurations/new_configuration_popup.dart index 70d0d0b..90b3e94 100644 --- a/lib/Screens/Configurations/new_configuration_popup.dart +++ b/lib/Screens/Configurations/new_configuration_popup.dart @@ -145,13 +145,16 @@ void create(ConfigurationDTO configurationDTO, AppContext appContext, context) a configurationDTO.isMobile = false; configurationDTO.isTablet = false; configurationDTO.isOffline = false; + configurationDTO.isDate = false; + configurationDTO.isHour = false; + configurationDTO.isWeather = false; configurationDTO.instanceId = (appContext.getContext() as ManagerAppContext).instanceId; await (appContext.getContext() as ManagerAppContext).clientAPI!.configurationApi!.configurationCreate(configurationDTO); ManagerAppContext managerAppContext = appContext.getContext(); managerAppContext.selectedConfiguration = null; appContext.setContext(managerAppContext); - showNotification(Colors.green, kWhite, 'La visite a été créée avec succès', context, null); + showNotification(Colors.green, kWhite, 'La configuration a été créée avec succès', context, null); Navigator.of(context).pop(); }