fix: html link if the visit is validated
parent
8cc6b838de
commit
f2f3bf22fa
|
|
@ -459,13 +459,12 @@ class _TabHomePageState extends State<TabHomePage>
|
|||
right: 4, // alignement à droite
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
// TODO: si visite validée ce n'est pas la meme url
|
||||
if (data.date_validation == null) {
|
||||
SharedPrefs().urlMP4 =
|
||||
'${ApiConstants.baseUrl}/MobilePortal4/index.html#ajax/visite_modification.html?visite=${data.id_visite}';
|
||||
} else {
|
||||
SharedPrefs().urlMP4 =
|
||||
'${ApiConstants.baseUrl}/MobilePortal4/index.html#ajax/visite_modification.html?visite=${data.id_visite}';
|
||||
'${ApiConstants.baseUrl}/MobilePortal4/index.html#ajax/visite.html?visite=${data.id_visite}';
|
||||
}
|
||||
|
||||
eventBus.fire(UrlEvent(SharedPrefs().urlMP4));
|
||||
|
|
|
|||
Loading…
Reference in New Issue