show message when there is error in submit or remove approvals

This commit is contained in:
amirrezaghabeli
2025-09-06 14:10:49 +03:30
parent 762b6d98fd
commit dad572af60
6 changed files with 137 additions and 88 deletions
@@ -55,6 +55,11 @@ class LikedTendersViewModel with ChangeNotifier {
_homeViewModel.init();
}
void clearApprovalErrorMessage() {
_errorMessage = null;
notifyListeners();
}
Future<void> getLikedTenders({bool reset = false}) async {
if (!reset && (isLoadingMore || !hasMore)) {
return;
@@ -303,7 +308,7 @@ class LikedTendersViewModel with ChangeNotifier {
approvalStatus = false;
break;
}
approvalStatus = false;
_isSubmitApprovalLoading = false;
notifyListeners();
}
@@ -370,6 +375,7 @@ class LikedTendersViewModel with ChangeNotifier {
break;
}
approvalStatus = false;
_isRejectApprovalLoading = false;
notifyListeners();
}