This commit is contained in:
2026-04-13 16:26:11 +02:00
parent d19d6ab3d9
commit 017a3d4fa3

View File

@@ -16,13 +16,14 @@ class StaffScreen extends StatefulWidget {
class _StaffScreenState extends State<StaffScreen> {
String? _selectedStoreId;
bool _showAllCompanyStaff = true; // Partiamo con la vista globale
bool _showAllCompanyStaff = false; // Partiamo con la vista globale
@override
void initState() {
super.initState();
// Carichiamo subito tutto
context.read<StaffCubit>().loadAllStaff();
_selectedStoreId = context.read<SessionBloc>().state.selectedStore!.id;
}
@override