TF-2188 Allow editable waiting/running/canceled status

(cherry picked from commit 04af1331106afb2df676fac5fefbd2b086187a38)
This commit is contained in:
dab246
2023-10-05 15:50:49 +07:00
committed by Dat H. Pham
parent 2478fa4b56
commit 928bc6cd78
3 changed files with 6 additions and 2 deletions
@@ -87,7 +87,7 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
onLongPressAction: controller.handleOnLongPressAction,
onSelectLeadingAction: controller.toggleSelectionSendingEmail,
onTapAction: (actionType, sendingEmail) {
if (!controller.isConnectedNetwork && sendingEmail.isWaiting) {
if (!controller.isConnectedNetwork && sendingEmail.isEditableSupported) {
controller.handleSendingEmailActionType(context, actionType, [sendingEmail]);
}
});
@@ -104,7 +104,7 @@ class BottomBarSendingQueueWidget extends StatelessWidget {
bool get _isEditable => !isConnectedNetwork &&
listSendingEmailSelected.length == 1 &&
listSendingEmailSelected.first.isWaiting;
listSendingEmailSelected.first.isEditableSupported;
bool get _isCanResend => listSendingEmailSelected.isAllSendingStateError();
}