some changes navigation in web and response changes
This commit is contained in:
@@ -104,7 +104,7 @@ class TenderActionButtonsRow extends StatelessWidget {
|
||||
if (tender.id == null) return const SizedBox.shrink();
|
||||
|
||||
final approval = viewModel.getTenderApprovalForTender(tender.id!);
|
||||
final isApproved = approval?.status == 'approved';
|
||||
final isApproved = approval?.status == 'submitted';
|
||||
|
||||
return Tooltip(
|
||||
message: AppStrings.submit,
|
||||
@@ -115,7 +115,7 @@ class TenderActionButtonsRow extends StatelessWidget {
|
||||
viewModel.toggleApprovals(
|
||||
tenderId: tender.id!,
|
||||
submissionMode: approval?.submissionMode ?? 'self-apply',
|
||||
status: 'approved',
|
||||
status: 'submitted',
|
||||
);
|
||||
} else {
|
||||
showModalBottomSheet(
|
||||
@@ -127,7 +127,7 @@ class TenderActionButtonsRow extends StatelessWidget {
|
||||
viewModel.toggleApprovals(
|
||||
tenderId: tender.id!,
|
||||
submissionMode: value,
|
||||
status: 'approved',
|
||||
status: 'submitted',
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user