add check availble filter rule in session
This commit is contained in:
@@ -18,14 +18,9 @@ class EmailRulesController extends BaseController {
|
||||
Get.find<ManageAccountDashBoardController>();
|
||||
final GetAllRulesInteractor _getAllRulesInteractor;
|
||||
final _imagePaths = Get.find<ImagePaths>();
|
||||
late Worker accountIdWorker;
|
||||
|
||||
EmailRulesController(this._getAllRulesInteractor);
|
||||
|
||||
void _clearWorker() {
|
||||
accountIdWorker.call();
|
||||
}
|
||||
|
||||
@override
|
||||
void onDone() {
|
||||
viewState.value.fold((failure) {}, (success) {
|
||||
@@ -46,12 +41,6 @@ class EmailRulesController extends BaseController {
|
||||
super.onInit();
|
||||
}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
_clearWorker();
|
||||
super.onClose();
|
||||
}
|
||||
|
||||
void goToCreateNewRule() {
|
||||
//TODO: goToCreateNewRule
|
||||
}
|
||||
|
||||
@@ -57,8 +57,8 @@ class EmailRulesView extends GetWidget<EmailRulesController> with AppLoaderMixin
|
||||
(failure) => const SizedBox.shrink(),
|
||||
(success) => success is LoadingState
|
||||
? Padding(
|
||||
padding: const EdgeInsets.only(bottom: 24),
|
||||
child: loadingWidget)
|
||||
padding: const EdgeInsets.only(bottom: 24),
|
||||
child: loadingWidget)
|
||||
: const SizedBox.shrink()
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user