TF-859 Keep local copy in Forwarding
This commit is contained in:
@@ -53,6 +53,8 @@ class ForwardController extends BaseController {
|
|||||||
|
|
||||||
final listForwards = <String>[].obs;
|
final listForwards = <String>[].obs;
|
||||||
|
|
||||||
|
bool get currentForwardLocalCopyState => currentForward.value?.localCopy ?? false;
|
||||||
|
|
||||||
ForwardController(
|
ForwardController(
|
||||||
this._getForwardInteractor,
|
this._getForwardInteractor,
|
||||||
this._deleteRecipientInForwardingInteractor,
|
this._deleteRecipientInForwardingInteractor,
|
||||||
@@ -282,10 +284,6 @@ class ForwardController extends BaseController {
|
|||||||
listRecipientForward.value = currentForward.value!.listRecipientForward;
|
listRecipientForward.value = currentForward.value!.listRecipientForward;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getCurrentForwardLocalCopyState() {
|
|
||||||
return currentForward.value?.localCopy ?? false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void handleEditLocalCopy() {
|
void handleEditLocalCopy() {
|
||||||
final accountId = accountDashBoardController.accountId.value;
|
final accountId = accountDashBoardController.accountId.value;
|
||||||
if (accountId != null && currentForward.value != null) {
|
if (accountId != null && currentForward.value != null) {
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ class ForwardHeaderWidget extends GetWidget<ForwardController> {
|
|||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: Colors.black)),
|
color: Colors.black)),
|
||||||
value: controller.getCurrentForwardLocalCopyState(),
|
value: controller.currentForwardLocalCopyState,
|
||||||
onChanged: (_) {
|
onChanged: (_) {
|
||||||
controller.handleEditLocalCopy();
|
controller.handleEditLocalCopy();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user