refactor: streamline shift navigation calls and set default shifts tab to 'myshifts'.
This commit is contained in:
@@ -113,11 +113,7 @@ extension StaffNavigator on IModularNavigator {
|
||||
if (refreshAvailable == true) {
|
||||
args['refreshAvailable'] = true;
|
||||
}
|
||||
pushNamedAndRemoveUntil(
|
||||
StaffPaths.shifts,
|
||||
(_) => false,
|
||||
arguments: args.isEmpty ? null : args,
|
||||
);
|
||||
navigate(StaffPaths.shifts, arguments: args.isEmpty ? null : args);
|
||||
}
|
||||
|
||||
/// Navigates to the Payments tab.
|
||||
|
||||
Reference in New Issue
Block a user