From 57ee6f3570ffcb89c1cc82bd4b005cd12df302ad Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Tue, 23 Apr 2024 08:05:19 +0200 Subject: [PATCH] refs #6861 feat:reservas previa --- .../pasillero/fragment/PasilleroViewModel.kt | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt index d8cb5d9c..1e4441eb 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt @@ -313,7 +313,7 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { } fun inititializeDefaultDataInit(pasillero: PasillerosItemVO? = null) { - + val userId = (contextApp as MobileApplication).userId if (pasillero != null) { _pasillerositem.add(pasillero) } else { @@ -349,7 +349,7 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { ) ) //val working_in_testMenu = false - val userId = (contextApp as MobileApplication).userId + if (userId == 19591 || userId == 822) { _pasillerositem.add( PasillerosItemVO( @@ -362,8 +362,7 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { ) ) ) - val workingInTest = false - if (workingInTest) { + if (userId == 19591){ _pasillerositem.add( PasillerosItemVO( 7, @@ -522,6 +521,19 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { ) ) ) + val userId = (contextApp as MobileApplication).userId + if (userId == 19591 || userId == 18404){ + _pasillerositem.add( + PasillerosItemVO( + 7, + R.drawable.ic_previous_presacador, + contextApp.getString(R.string.titlePrePickerTest), + R.string.titlePrePickerTest, + contextApp.getString( + R.string.titlePickerDescrip + ) + ) + )} _pasillerositem.add( PasillerosItemVO( 7,