From dd3286ff0f6d2e024af9f2e260be714b7f110b54 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Mon, 4 Apr 2022 15:16:55 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index a7e9d0b48fa2..77602187b0d9 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -382070,7 +382070,7 @@ return A.Stack$(B.AlignmentDirectional_m1_m1, t1, B.Clip_1, B.StackFit_0, _null, _null); }, _buildEdit$1(context) { - var t4, enableCustomEmail, t5, _this = this, _null = null, + var t4, enableCustomEmail, t5, t6, _this = this, _null = null, t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization), state = _this._widget.viewModel.state, t2 = state.authState, @@ -382105,15 +382105,16 @@ } else enableCustomEmail = true; t2 = A._setArrayType([], type$.JSArray_legacy_Widget); - if (!enableCustomEmail) + t3 = !enableCustomEmail; + if (t3) t2.push(new A.Padding(B.EdgeInsets_0_0_0_10, new A.IconMessage(t1.get$customEmailsDisabledHelp(), _null, _null, A.TextButton$(false, A.Text$(t1.get$upgrade().toUpperCase(), _null, _null, _null, _null, _null, A.TextStyle$(_null, _null, B.Color_4294967295, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), _null, _null, _null), _null, new A._InvoiceEmailViewState__buildEdit_closure(state), _null), _null), _null)); - t3 = state.userCompanyStates; - t4 = state.uiState.selectedCompanyIndex; - t3 = t3._list; - t5 = t3[t4].userCompany.company.markdownEmailEnabled && _this._widget.viewModel.state.prefState.appLayout === B.AppLayout_desktop && !A._lateReadCheck(A.StoreProvider_of(context, type$.legacy_AppState).__Store__state, "_state").prefState.enableDarkMode ? B.Color_4294967295 : A.Theme_of(context).backgroundColor; - t2.push(new A.ColoredBox(t5, new A.Padding(B.EdgeInsets_24_0_10_16, A.DecoratedFormField$(false, _null, false, false, _this._invoice_email_view$_subjectController, _null, enableCustomEmail, _null, _null, _null, _null, false, false, _null, B.TextInputType_0_null_null, t1.get$subject(), _null, _null, false, new A._InvoiceEmailViewState__buildEdit_closure0(_this), _null, _null, true, _null, _null, B.TextAlign_4, _null), _null), _null)); - if (t3[t4].userCompany.company.markdownEmailEnabled && _this._widget.viewModel.state.prefState.appLayout === B.AppLayout_desktop) - t2.push(A.Expanded$(new A.ColoredBox(B.Color_4294967295, new A.ExampleEditor(_this._rawBodyPreview, new A._InvoiceEmailViewState__buildEdit_closure1(_this), _null), _null), 1)); + t4 = state.userCompanyStates; + t5 = state.uiState.selectedCompanyIndex; + t4 = t4._list; + t6 = t4[t5].userCompany.company.markdownEmailEnabled && _this._widget.viewModel.state.prefState.appLayout === B.AppLayout_desktop && !A._lateReadCheck(A.StoreProvider_of(context, type$.legacy_AppState).__Store__state, "_state").prefState.enableDarkMode ? B.Color_4294967295 : A.Theme_of(context).backgroundColor; + t2.push(new A.ColoredBox(t6, new A.Padding(B.EdgeInsets_24_0_10_16, A.DecoratedFormField$(false, _null, false, false, _this._invoice_email_view$_subjectController, _null, enableCustomEmail, _null, _null, _null, _null, false, false, _null, B.TextInputType_0_null_null, t1.get$subject(), _null, _null, false, new A._InvoiceEmailViewState__buildEdit_closure0(_this), _null, _null, true, _null, _null, B.TextAlign_4, _null), _null), _null)); + if (t4[t5].userCompany.company.markdownEmailEnabled && _this._widget.viewModel.state.prefState.appLayout === B.AppLayout_desktop) + t2.push(A.Expanded$(new A.ColoredBox(B.Color_4294967295, new A.IgnorePointer(t3, _null, new A.ExampleEditor(_this._rawBodyPreview, new A._InvoiceEmailViewState__buildEdit_closure1(_this), _null), _null), _null), 1)); else { t1 = t1.get$body(t1); t3 = enableCustomEmail ? 6 : 2;