feat: integrate GService into various root logic classes and log user roles during initialization
This commit is contained in:
@@ -15,6 +15,7 @@ enum ErrorLocationType { serviceDisabled, permissionDenied, none }
|
||||
|
||||
class JahadRootLogic extends GetxController {
|
||||
var tokenService = Get.find<TokenStorageService>();
|
||||
var gService = Get.find<GService>();
|
||||
|
||||
late JahadRepository jahadRepository;
|
||||
|
||||
@@ -45,6 +46,7 @@ class JahadRootLogic extends GetxController {
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
jahadRepository = diChicken.get<JahadRepository>();
|
||||
fLog('gService: ${gService.getRole(Module.chicken)}');
|
||||
}
|
||||
|
||||
void toggleExpanded(int index) {
|
||||
|
||||
Reference in New Issue
Block a user