WIP
This commit is contained in:
parent
97c2180dcc
commit
6e2ccc209b
|
@ -39,7 +39,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<bool> processDisplayDefault(EnumMenuItem item, MenuEntry opt, List<MenuItem?> entries) async {
|
Future<bool> processDisplayDefault(EnumMenuItem item, MenuEntry opt, List<MenuItem?> entries) async {
|
||||||
if (opt.key == 'FRE-HUB-LOGOUT') {
|
if (opt.value == 'FRE-HUB-LOGOUT') {
|
||||||
await addMenuEntry(item, entries, opt.icon, opt.name, () async {
|
await addMenuEntry(item, entries, opt.icon, opt.name, () async {
|
||||||
await AuthenticationService.signOut(navigatorKey.currentContext!);
|
await AuthenticationService.signOut(navigatorKey.currentContext!);
|
||||||
});
|
});
|
||||||
|
@ -67,7 +67,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('Error processing display for module ${opt.key}: $e');
|
log('Error processing display for module ${opt.value}: $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
|
||||||
final start = DateTime.tryParse(startDate);
|
final start = DateTime.tryParse(startDate);
|
||||||
return start != null && DateTime.now().isAfter(start);
|
return start != null && DateTime.now().isAfter(start);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('Error processing start date for module ${opt.key}: $e');
|
log('Error processing start date for module ${opt.value}: $e');
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ class MenuLocalDataSourceImpl implements MenuLocalDataSource {
|
||||||
final expiration = DateTime.tryParse(expirationDate);
|
final expiration = DateTime.tryParse(expirationDate);
|
||||||
return expiration != null && DateTime.now().isAfter(expiration);
|
return expiration != null && DateTime.now().isAfter(expiration);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('Error processing expiration date for module ${opt.key}: $e');
|
log('Error processing expiration date for module ${opt.value}: $e');
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue