1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Admin Portal - Profile

This commit is contained in:
hillelcoren 2023-03-27 18:27:20 +00:00
parent 965f1262ef
commit 15f1111679

View File

@ -65726,7 +65726,7 @@
if (B.JSString_methods.startsWith$1(url, "https://invoicing.co"))
secret = "";
t1 = type$.legacy_String;
headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.111", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1);
headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.112", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1);
if (token.length !== 0)
headers.$indexSet(0, "X-API-Token", token);
if ((idToken == null ? "" : idToken).length !== 0)
@ -65750,9 +65750,9 @@
t2 = response.get$body(response).length > 200 ? B.JSString_methods.substring$2(response.get$body(response), 0, 200) : response.get$body(response);
throw A.wrapException("Error: please check that Invoice Ninja v5 is installed on the server\n\nURL: " + url + "\n\nResponse: " + t2 + "\n\nHeaders: " + t1.toString$0(0) + "}");
} else {
t1 = A.Version__compare(A.Version_parse("5.0.111"), A.Version_parse(minClientVersion));
t1 = A.Version__compare(A.Version_parse("5.0.112"), A.Version_parse(minClientVersion));
if (t1 < 0)
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.111 < Minimum v" + A.S(minClientVersion) + "]");
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.112 < Minimum v" + A.S(minClientVersion) + "]");
else {
t1 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4"));
if (t1 < 0)
@ -140399,6 +140399,15 @@
return false;
return true;
},
supportsLatestFeatures() {
var t1 = $.$get$navigatorKey();
t1.toString;
t1 = A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState).__Store__state_A;
t1 === $ && A.throwUnnamedLateFieldNI();
if (!t1.get$isHosted())
return true;
return true;
},
supportsInAppPurchase() {
var t1 = $.$get$navigatorKey();
t1.toString;
@ -354893,15 +354902,18 @@
actions.push(B.EntityAction_start);
else if (B.JSArray_methods.contains$1(A._setArrayType(["-1", "2"], t3), t4))
actions.push(B.EntityAction_stop);
actions.push(B.EntityAction_updatePrices);
actions.push(B.EntityAction_increasePrices);
if (A.supportsLatestFeatures()) {
actions.push(B.EntityAction_updatePrices);
actions.push(B.EntityAction_increasePrices);
}
} else if (!_this.get$isCancelledOrReversed())
if (multiselect)
actions.push(B.EntityAction_bulkSendEmail);
else {
actions.push(B.EntityAction_sendEmail);
if (_this.get$isUnpaid())
actions.push(B.EntityAction_schedule);
if (A.supportsLatestFeatures())
actions.push(B.EntityAction_schedule);
}
}
if (multiselect) {
@ -389468,7 +389480,7 @@
version = "v" + (t1 == null ? "" : t1);
if (version.length !== 0)
version += "-";
return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.111".split(".")));
return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.112".split(".")));
},
get$historyList() {
var _this = this,
@ -509261,10 +509273,13 @@
t20.push(_s10_);
t20 = A.List_List$of(new A.MappedListIterable(t20, new A._InvoiceDesignState_build_closure59(), t2), true, t17);
t21 = settings.getFieldsForSection$1(_s15_1);
t21 = A.Expanded$(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t20, false, true, new A._InvoiceDesignState_build_closure60(viewModel, settings), t5, "product", t21), _null, _null, _null, false, _null, false, _null, _null), 1);
t6 = J.$index$asx(t4.$index(0, t6), _s27_);
t4 = A.Text$(t6 == null ? J.$index$asx(t4.$index(0, _s2_), _s27_) : t6, _null, _null, _null, _null, _null, _null, _null, _null, _null);
t24.push(A.Column$(A._setArrayType([t21, A.FormCard$(A.SwitchListTile$(A.Theme_of(context).colorScheme.secondary, _null, new A._InvoiceDesignState_build_closure61(viewModel, settings), _null, _null, t4, !t9), _null, _null, _null, false, _null, true, _null, _null)], t16), B.CrossAxisAlignment_3, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1));
t21 = A._setArrayType([A.Expanded$(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t20, false, true, new A._InvoiceDesignState_build_closure60(viewModel, settings), t5, "product", t21), _null, _null, _null, false, _null, false, _null, _null), 1)], t16);
if (A.supportsLatestFeatures()) {
t5 = J.$index$asx(t4.$index(0, t6), _s27_);
t4 = A.Text$(t5 == null ? J.$index$asx(t4.$index(0, _s2_), _s27_) : t5, _null, _null, _null, _null, _null, _null, _null, _null, _null);
t21.push(A.FormCard$(A.SwitchListTile$(A.Theme_of(context).colorScheme.secondary, _null, new A._InvoiceDesignState_build_closure61(viewModel, settings), _null, _null, t4, !t9), _null, _null, _null, false, _null, true, _null, _null));
}
t24.push(A.Column$(t21, B.CrossAxisAlignment_3, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1));
if (t9) {
t4 = A._setArrayType(["item", "description"], t8);
if (t15)
@ -511002,15 +511017,17 @@
t1 = "";
t10.push(new A.Padding(B.EdgeInsets_0_16_0_0, A.DecoratedFormField$(false, _null, false, _this._minimumUnderPaymentAmountController, _null, true, _null, _null, _null, _null, true, false, _null, new A.TextInputType(2, true, true), t1, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null), _null));
}
t1 = J.$index$asx(t2.$index(0, t3), _s25_);
if (t1 == null)
t1 = J.$index$asx(t2.$index(0, _s2_), _s25_);
t9 = settings.clientInitiatedPayments;
t11 = J.$index$asx(t2.$index(0, t3), _s30_0);
if (t11 == null)
t11 = J.$index$asx(t2.$index(0, _s2_), _s30_0);
t10.push(A.BoolDropdownButton$(_null, _null, t11, _null, t1, _null, new A._PaymentSettingsState_build_closure10(viewModel, settings), t9));
if (t9 === true) {
if (A.supportsLatestFeatures()) {
t1 = J.$index$asx(t2.$index(0, t3), _s25_);
if (t1 == null)
t1 = J.$index$asx(t2.$index(0, _s2_), _s25_);
t9 = settings.clientInitiatedPayments;
t11 = J.$index$asx(t2.$index(0, t3), _s30_0);
if (t11 == null)
t11 = J.$index$asx(t2.$index(0, _s2_), _s30_0);
t10.push(A.BoolDropdownButton$(_null, _null, t11, _null, t1, _null, new A._PaymentSettingsState_build_closure10(viewModel, settings), t9));
}
if (settings.clientInitiatedPayments === true) {
t1 = J.$index$asx(t2.$index(0, t3), _s22_);
if (t1 == null)
t1 = J.$index$asx(t2.$index(0, _s2_), _s22_);
@ -512671,19 +512688,22 @@
t13 = A.Text$(t13 == null ? J.$index$asx(t2.$index(0, _s2_), _s18_) : t13, _null, _null, _null, _null, _null, _null, _null, _null, _null);
t14 = company.showTaskEndDate;
t15 = J.$index$asx(t2.$index(0, t3), _s23_);
t12 = A.SwitchListTile$(t12.secondary, _null, new A._TaskSettingsState_build_closure0(viewModel, company), _null, A.Text$(t15 == null ? J.$index$asx(t2.$index(0, _s2_), _s23_) : t15, _null, _null, _null, _null, _null, _null, _null, _null, _null), t13, t14);
t13 = A.Theme_of(context).colorScheme;
t14 = J.$index$asx(t2.$index(0, t3), _s26_);
t14 = A.Text$(t14 == null ? J.$index$asx(t2.$index(0, _s2_), _s26_) : t14, _null, _null, _null, _null, _null, _null, _null, _null, _null);
t15 = settings.showTaskItemDescription;
t16 = J.$index$asx(t2.$index(0, t3), _s31_);
t13 = A.SwitchListTile$(t13.secondary, _null, new A._TaskSettingsState_build_closure1(viewModel, settings), _null, A.Text$(t16 == null ? J.$index$asx(t2.$index(0, _s2_), _s31_) : t16, _null, _null, _null, _null, _null, _null, _null, _null, _null), t14, t15);
t14 = A.Theme_of(context).colorScheme;
t15 = J.$index$asx(t2.$index(0, t3), _s25_);
t15 = A.Text$(t15 == null ? J.$index$asx(t2.$index(0, _s2_), _s25_) : t15, _null, _null, _null, _null, _null, _null, _null, _null, _null);
t16 = settings.allowBillableTaskItems;
t17 = J.$index$asx(t2.$index(0, t3), _s30_);
B.JSArray_methods.addAll$1(t8, A._setArrayType([new A.SizedBox(_null, 32, _null, _null), t11, t12, t13, A.SwitchListTile$(t14.secondary, _null, new A._TaskSettingsState_build_closure2(viewModel, settings), _null, A.Text$(t17 == null ? J.$index$asx(t2.$index(0, _s2_), _s30_) : t17, _null, _null, _null, _null, _null, _null, _null, _null, _null), t15, t16)], t9));
t11 = A._setArrayType([new A.SizedBox(_null, 32, _null, _null), t11, A.SwitchListTile$(t12.secondary, _null, new A._TaskSettingsState_build_closure0(viewModel, company), _null, A.Text$(t15 == null ? J.$index$asx(t2.$index(0, _s2_), _s23_) : t15, _null, _null, _null, _null, _null, _null, _null, _null, _null), t13, t14)], t9);
if (A.supportsLatestFeatures()) {
t12 = A.Theme_of(context).colorScheme;
t13 = J.$index$asx(t2.$index(0, t3), _s26_);
t13 = A.Text$(t13 == null ? J.$index$asx(t2.$index(0, _s2_), _s26_) : t13, _null, _null, _null, _null, _null, _null, _null, _null, _null);
t14 = settings.showTaskItemDescription;
t15 = J.$index$asx(t2.$index(0, t3), _s31_);
t12 = A.SwitchListTile$(t12.secondary, _null, new A._TaskSettingsState_build_closure1(viewModel, settings), _null, A.Text$(t15 == null ? J.$index$asx(t2.$index(0, _s2_), _s31_) : t15, _null, _null, _null, _null, _null, _null, _null, _null, _null), t13, t14);
t13 = A.Theme_of(context).colorScheme;
t14 = J.$index$asx(t2.$index(0, t3), _s25_);
t14 = A.Text$(t14 == null ? J.$index$asx(t2.$index(0, _s2_), _s25_) : t14, _null, _null, _null, _null, _null, _null, _null, _null, _null);
t15 = settings.allowBillableTaskItems;
t16 = J.$index$asx(t2.$index(0, t3), _s30_);
B.JSArray_methods.addAll$1(t11, A._setArrayType([t12, A.SwitchListTile$(t13.secondary, _null, new A._TaskSettingsState_build_closure2(viewModel, settings), _null, A.Text$(t16 == null ? J.$index$asx(t2.$index(0, _s2_), _s30_) : t16, _null, _null, _null, _null, _null, _null, _null, _null, _null), t14, t15)], t9));
}
B.JSArray_methods.addAll$1(t8, t11);
}
t8 = A._setArrayType([A.FormCard$(_null, t8, _null, _null, false, _null, false, _null, _null)], t9);
if (t10) {
@ -564092,7 +564112,7 @@
return false;
},
$ge(_, o) {
return false;
return o instanceof A.Version && A.Version__compare(this, o) >= 0;
},
compareTo$1(_, other) {
if (other == null)