Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-03-09 11:39:42 +00:00
parent 988ea8e7ff
commit 12b301e399

View File

@ -365557,11 +365557,28 @@
return new A.EmailPreview(_this._invoice_email_view$_subjectPreview, _this._invoice_email_view$_bodyPreview, t1, _null); return new A.EmailPreview(_this._invoice_email_view$_subjectPreview, _this._invoice_email_view$_bodyPreview, t1, _null);
}, },
_buildEdit$1(context) { _buildEdit$1(context) {
var t3, t4, t5, _this = this, _null = null, var enableCustomEmail, t4, t5, _this = this, _null = null,
t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization), t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization),
state = _this._widget.viewModel.state, state = _this._widget.viewModel.state,
t2 = state.authState.get$isHosted(), t2 = state.authState,
enableCustomEmail = !t2 || state.get$isPaidAccount(); t3 = t2.get$isHosted();
if (t3) {
if (A.cleanApiUrl(t2.url) === "https://invoicing.co") {
t2 = state.userCompanyStates;
t3 = state.uiState.selectedCompanyIndex;
t3 = t2._list[t3].userCompany.account.plan === "enterprise";
t2 = t3;
} else
t2 = true;
if (!t2) {
t2 = state.userCompanyStates;
t3 = state.uiState.selectedCompanyIndex;
t3 = t2._list[t3].userCompany.account.plan === "pro";
enableCustomEmail = t3;
} else
enableCustomEmail = true;
} else
enableCustomEmail = true;
t2 = A.getLayout(context) === B.AppLayout_mobile ? 16 : 0; t2 = A.getLayout(context) === B.AppLayout_mobile ? 16 : 0;
t3 = type$.JSArray_legacy_Widget; t3 = type$.JSArray_legacy_Widget;
t4 = A._setArrayType([], t3); t4 = A._setArrayType([], t3);
@ -410094,7 +410111,10 @@
company = t2[t4].userCompany.company; company = t2[t4].userCompany.company;
t5 = state.authState; t5 = state.authState;
t6 = t5.get$isHosted(); t6 = t5.get$isHosted();
enableCustomEmail = !t6 || state.get$isPaidAccount(); if (t6)
enableCustomEmail = A.cleanApiUrl(t5.url) !== "https://invoicing.co" || t2[t4].userCompany.account.plan === "enterprise" || t2[t4].userCompany.account.plan === "pro";
else
enableCustomEmail = true;
t6 = t1.localeCode; t6 = t1.localeCode;
t7 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t6), "template"); t7 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t6), "template");
if (t7 == null) if (t7 == null)