mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
delete dynamic password
This commit is contained in:
@ -575,57 +575,6 @@ class VisitorPasswordDialog extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// onPressed: () {
|
||||
// if (visitorBloc.forgetFormKey.currentState!.validate()) {
|
||||
// if (visitorBloc.selectedDevices.isNotEmpty) {
|
||||
// switch (visitorBloc.usageFrequencySelected) {
|
||||
// case 'One-Time':
|
||||
// if (visitorBloc.accessTypeSelected == 'Offline Password') {
|
||||
// setPasswordFunction(context, size, visitorBloc);
|
||||
// } else {
|
||||
// visitorBloc.stateDialog(
|
||||
// context: context,
|
||||
// message: 'Invalid combination of Access Type and Usage Frequency.',
|
||||
// title: 'Error',
|
||||
// );
|
||||
// }
|
||||
// break;
|
||||
// default:
|
||||
// if (visitorBloc.effectiveTimeTimeStamp != null && visitorBloc.expirationTimeTimeStamp != null) {
|
||||
// if (isRepeat) {
|
||||
// if (visitorBloc.expirationTime != 'End Time' &&
|
||||
// visitorBloc.effectiveTime != 'Start Time' &&
|
||||
// visitorBloc.selectedDays.isNotEmpty) {
|
||||
// setPasswordFunction(context, size, visitorBloc);
|
||||
// } else {
|
||||
// visitorBloc.stateDialog(
|
||||
// context: context,
|
||||
// message: 'Please select days and fill start time and end time to continue',
|
||||
// title: 'Access Period',
|
||||
// );
|
||||
// }
|
||||
// } else {
|
||||
// setPasswordFunction(context, size, visitorBloc);
|
||||
// }
|
||||
// } else {
|
||||
// visitorBloc.stateDialog(
|
||||
// context: context,
|
||||
// message: 'Please select Access Period to continue',
|
||||
// title: 'Access Period',
|
||||
// );
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// } else {
|
||||
// visitorBloc.stateDialog(
|
||||
// context: context,
|
||||
// message: 'Please select devices to continue',
|
||||
// title: 'Select Devices',
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
borderRadius: 8,
|
||||
child: Text(
|
||||
'Ok',
|
||||
|
Reference in New Issue
Block a user