added singleUserMode and removed StaffSection from forms
This commit is contained in:
@@ -188,11 +188,13 @@ class HomeScreen extends StatelessWidget {
|
||||
icon: Icons.add,
|
||||
label: context.l10n.commonOperation,
|
||||
color: Colors.blue,
|
||||
onTap: () {
|
||||
// Entriamo nel form! Nessun parametro extra = Nuovo Servizio
|
||||
onTap: () async {
|
||||
StaffMemberModel? createdBy = await getStaffMember(context);
|
||||
if (createdBy == null || !context.mounted) return;
|
||||
context.pushNamed(
|
||||
Routes.operationForm,
|
||||
pathParameters: {'id': 'new'},
|
||||
extra: (createdBy: createdBy, operation: null),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -207,7 +209,7 @@ class HomeScreen extends StatelessWidget {
|
||||
context.pushNamed(
|
||||
Routes.ticketForm,
|
||||
pathParameters: {'id': 'new'},
|
||||
extra: createdBy,
|
||||
extra: (createdBy: createdBy, ticket: null),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user