feat(patient): implement doctor-only patient deletion, alert theme styling, and test auto-cleanup
This commit is contained in:
@@ -83,6 +83,24 @@ mixin _$PatientStore on _PatientStoreBase, Store {
|
||||
});
|
||||
}
|
||||
|
||||
late final _$isDeletingAtom = Atom(
|
||||
name: '_PatientStoreBase.isDeleting',
|
||||
context: context,
|
||||
);
|
||||
|
||||
@override
|
||||
bool get isDeleting {
|
||||
_$isDeletingAtom.reportRead();
|
||||
return super.isDeleting;
|
||||
}
|
||||
|
||||
@override
|
||||
set isDeleting(bool value) {
|
||||
_$isDeletingAtom.reportWrite(value, super.isDeleting, () {
|
||||
super.isDeleting = value;
|
||||
});
|
||||
}
|
||||
|
||||
late final _$errorMessageAtom = Atom(
|
||||
name: '_PatientStoreBase.errorMessage',
|
||||
context: context,
|
||||
@@ -769,6 +787,16 @@ mixin _$PatientStore on _PatientStoreBase, Store {
|
||||
return _$savePatientAsyncAction.run(() => super.savePatient());
|
||||
}
|
||||
|
||||
late final _$deletePatientAsyncAction = AsyncAction(
|
||||
'_PatientStoreBase.deletePatient',
|
||||
context: context,
|
||||
);
|
||||
|
||||
@override
|
||||
Future<bool> deletePatient() {
|
||||
return _$deletePatientAsyncAction.run(() => super.deletePatient());
|
||||
}
|
||||
|
||||
late final _$_PatientStoreBaseActionController = ActionController(
|
||||
name: '_PatientStoreBase',
|
||||
context: context,
|
||||
@@ -828,6 +856,7 @@ mixin _$PatientStore on _PatientStoreBase, Store {
|
||||
id: ${id},
|
||||
isLoading: ${isLoading},
|
||||
isSaving: ${isSaving},
|
||||
isDeleting: ${isDeleting},
|
||||
errorMessage: ${errorMessage},
|
||||
successMessage: ${successMessage},
|
||||
fecReg: ${fecReg},
|
||||
|
||||
Reference in New Issue
Block a user