fix : di for Role

This commit is contained in:
2025-09-03 11:43:52 +03:30
parent ebec27b630
commit 8e9768daf6
9 changed files with 74 additions and 86 deletions

View File

@@ -89,7 +89,7 @@ class ModulesLogic extends GetxController {
selectedIndex.value = index;
await Future.delayed(Duration(milliseconds: 300));
selectedIndex.value = null;
saveModule(module);
// saveModule(module);
await navigateToModule(module);
}
@@ -98,14 +98,14 @@ class ModulesLogic extends GetxController {
if (target.value?[0] != null) {
isLoading.value = !isLoading.value;
await target.value?[0];
await target.value?[0]?.call();
isLoading.value = !isLoading.value;
}
await Get.toNamed(target.key, arguments: module);
if (target.value?[1] != null) {
await target.value?[1];
await target.value?[1]?.call();
}
}