TF-1915 Add Refresh To Pull for SendingQueueView
(cherry picked from commit a3c1e891bbd002b116d39ac1e28a4f4b8ba4b4e1)
This commit is contained in:
@@ -60,7 +60,7 @@ class SendingQueueController extends BaseController with MessageDialogActionMixi
|
||||
final workState = WorkerState.values.firstWhereOrNull((state) => state.name == event);
|
||||
log('SendingQueueController::_handleSendingQueueEvent():workState: $workState');
|
||||
if (workState != null) {
|
||||
_refreshSendingQueue(needToReopen: true);
|
||||
refreshSendingQueue(needToReopen: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ class SendingQueueController extends BaseController with MessageDialogActionMixi
|
||||
|
||||
bool get isConnectedNetwork => _networkConnectionController?.isNetworkConnectionAvailable() == true;
|
||||
|
||||
void _refreshSendingQueue({bool needToReopen = false}) {
|
||||
void refreshSendingQueue({bool needToReopen = false}) {
|
||||
dashboardController!.getAllSendingEmails(needToReopen: needToReopen);
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ class SendingQueueController extends BaseController with MessageDialogActionMixi
|
||||
AppLocalizations.of(currentContext!).messageHaveBeenDeletedSuccessfully
|
||||
);
|
||||
|
||||
_refreshSendingQueue();
|
||||
refreshSendingQueue();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user