staff e store

This commit is contained in:
2026-04-13 18:26:17 +02:00
parent 1ce956e1e8
commit f710183f61
6 changed files with 316 additions and 2 deletions

View File

@@ -22,8 +22,8 @@ class _StaffScreenState extends State<StaffScreen> {
void initState() {
super.initState();
// Carichiamo subito tutto
context.read<StaffCubit>().loadAllStaff();
_selectedStoreId = context.read<SessionBloc>().state.selectedStore!.id;
context.read<StaffCubit>().loadStaffForStore(_selectedStoreId!);
}
@override