show message when there is error in submit or remove approvals
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user