mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Admin Portal - Profile
This commit is contained in:
parent
8d614dca37
commit
4d254dbb1e
55
public/main.profile.dart.js
vendored
55
public/main.profile.dart.js
vendored
@ -59072,7 +59072,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.87", "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.88", "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)
|
||||
@ -59095,9 +59095,9 @@
|
||||
else if (serverVersion == null)
|
||||
throw A.wrapException("Error: please check that Invoice Ninja v5 is installed on the server");
|
||||
else {
|
||||
t2 = A.Version__compare(A.Version_parse("5.0.87"), A.Version_parse(minClientVersion));
|
||||
t2 = A.Version__compare(A.Version_parse("5.0.88"), A.Version_parse(minClientVersion));
|
||||
if (t2 < 0)
|
||||
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.87 < Minimum v" + A.S(minClientVersion) + "]");
|
||||
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.88 < Minimum v" + A.S(minClientVersion) + "]");
|
||||
else {
|
||||
t2 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4"));
|
||||
if (t2 < 0)
|
||||
@ -316073,12 +316073,13 @@
|
||||
return B.JSArray_methods.contains$1(A._setArrayType([B.EntityAction_start, B.EntityAction_stop, B.EntityAction_markPaid, B.EntityAction_markSent, B.EntityAction_convertToInvoice, B.EntityAction_approve, B.EntityAction_cancelInvoice, B.EntityAction_resume, B.EntityAction_archive, B.EntityAction_delete, B.EntityAction_restore, B.EntityAction_purge], type$.JSArray_legacy_EntityAction), this);
|
||||
},
|
||||
toApiParam$0() {
|
||||
var value = A.toSnakeCase(this.super$EnumClass$toString(0));
|
||||
if (B.JSString_methods.endsWith$1(value, "email"))
|
||||
var _this = this,
|
||||
value = A.toSnakeCase(_this.super$EnumClass$toString(0));
|
||||
if (_this === B.EntityAction_sendEmail || _this === B.EntityAction_bulkSendEmail)
|
||||
return "email";
|
||||
if (this === B.EntityAction_cancelInvoice)
|
||||
else if (_this === B.EntityAction_cancelInvoice)
|
||||
return "cancel";
|
||||
else if (this === B.EntityAction_convertToExpense)
|
||||
else if (_this === B.EntityAction_convertToExpense)
|
||||
return "expense";
|
||||
return value;
|
||||
}
|
||||
@ -342938,7 +342939,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.87".split(".")));
|
||||
return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.88".split(".")));
|
||||
},
|
||||
get$historyList() {
|
||||
var _this = this,
|
||||
@ -394741,8 +394742,8 @@
|
||||
showOverflow = A.getLayout(context) === B.AppLayout_desktop && _this.isFullscreen && _this.onActionPressed != null;
|
||||
if (state.get$companies().length === 0)
|
||||
t2 = new A.LoadingIndicator(_null, false, _null);
|
||||
else if (showUpgradeBanner) {
|
||||
t2 = t2[t4].userCompany.isOwner && !A.isApple() ? new A.EditScaffold_build_closure0(state) : _null;
|
||||
else if (showUpgradeBanner && !A.isApple()) {
|
||||
t2 = t2[t4].userCompany.isOwner ? new A.EditScaffold_build_closure0(state) : _null;
|
||||
t2 = A.Column$(A._setArrayType([A.InkWell$(false, _null, true, new A.IconMessage(upgradeMessage, _null, B.MaterialColor_Map_JNZaB_4294940672, _null, _null), _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, t2, _null, _null, _null, _null, _null, _null), A.Expanded$(_this.body, 1)], type$.JSArray_legacy_Widget), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1);
|
||||
} else {
|
||||
t2 = state.isSaving && A.getLayout(context) === B.AppLayout_desktop;
|
||||
@ -400812,21 +400813,21 @@
|
||||
A.isApple();
|
||||
t8.push(A.DrawerTile$(company, _null, A.getEntityIcon(B.EntityType_dashboard), _null, new A.MenuDrawer_build_closure6(store), new A.MenuDrawer_build_closure7(), t3.get$dashboard()));
|
||||
t1 = A.getEntityIcon(B.EntityType_client);
|
||||
t9 = t3.get$clients(t3);
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_client, t1, t3.get$newClient(), _null, _null, t9));
|
||||
t9 = A.getEntityIcon(B.EntityType_product);
|
||||
t11 = t3.get$clients(t3);
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_client, t1, t3.get$newClient(), _null, _null, t11));
|
||||
t11 = A.getEntityIcon(B.EntityType_product);
|
||||
t1 = t3.get$products();
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_product, t9, t3.get$newProduct(), _null, _null, t1));
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_product, t11, t3.get$newProduct(), _null, _null, t1));
|
||||
t1 = A.getEntityIcon(B.EntityType_invoice);
|
||||
t9 = t3.get$invoices();
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_invoice, t1, t3.get$newInvoice(), _null, _null, t9));
|
||||
t9 = A.getEntityIcon(B.EntityType_recurringInvoice);
|
||||
t11 = t3.get$invoices();
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_invoice, t1, t3.get$newInvoice(), _null, _null, t11));
|
||||
t11 = A.getEntityIcon(B.EntityType_recurringInvoice);
|
||||
t1 = t3.get$recurringInvoices();
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_recurringInvoice, t9, t3.get$newRecurringInvoice(), _null, _null, t1));
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_recurringInvoice, t11, t3.get$newRecurringInvoice(), _null, _null, t1));
|
||||
t1 = A.getEntityIcon(B.EntityType_payment);
|
||||
t9 = t3.get$payments();
|
||||
t11 = t3.get$payments();
|
||||
t7 = J.$index$asx(t6.$index(0, t7), "new_payment");
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_payment, t1, t7 == null ? "" : t7, _null, _null, t9));
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_payment, t1, t7 == null ? "" : t7, _null, _null, t11));
|
||||
t1 = A.getEntityIcon(B.EntityType_quote);
|
||||
t6 = t3.get$quotes(t3);
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_quote, t1, t3.get$newQuote(), _null, _null, t6));
|
||||
@ -400847,10 +400848,14 @@
|
||||
t1 = t3.get$expenses();
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_expense, t6, t3.get$newExpense(), _null, _null, t1));
|
||||
t8.push(A.DrawerTile$(company, B.EntityType_recurringExpense, A.getEntityIcon(B.EntityType_recurringExpense), _null, _null, _null, t3.get$recurringExpenses()));
|
||||
t8.push(A.DrawerTile$(company, _null, A.getEntityIcon(B.EntityType_reports), _null, _null, new A.MenuDrawer_build_closure8(), t3.get$reports()));
|
||||
if (A.isApple())
|
||||
t1 = !state.get$isHosted() || t9[t10].userCompany.account.plan === "enterprise" || t9[t10].userCompany.account.plan === "pro";
|
||||
else
|
||||
t1 = true;
|
||||
if (t1)
|
||||
t8.push(A.DrawerTile$(company, _null, A.getEntityIcon(B.EntityType_reports), _null, _null, new A.MenuDrawer_build_closure8(), t3.get$reports()));
|
||||
t8.push(A.DrawerTile$(company, _null, A.getEntityIcon(B.EntityType_settings), _null, _null, new A.MenuDrawer_build_closure9(), t3.get$settings()));
|
||||
t5 = A.Expanded$(A.Container$(_null, new A.ScrollableListView(t8, _null, _null, _null), B.Clip_0, t5, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), 1);
|
||||
t1 = t5;
|
||||
t1 = A.Expanded$(A.Container$(_null, new A.ScrollableListView(t8, _null, _null, _null), B.Clip_0, t5, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), 1);
|
||||
}
|
||||
t3 = state.get$isMenuCollapsed() ? new A.SidebarFooterCollapsed(_null) : new A.SidebarFooter(_null);
|
||||
return A.FocusTraversalGroup$(A.Container$(_null, A.Drawer$(A.SafeArea$(true, A.Column$(A._setArrayType([t4, t1, new A.SizedBox(_null, 50, new A.AppBorder(new A.Align(new A.Alignment(0, 1), _null, _null, t3, _null), true, _null, _null, false, _null), _null)], type$.JSArray_legacy_Widget), B.CrossAxisAlignment_0, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), B.EdgeInsets_0_0_0_0, true)), B.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, t2), true, true, _null);
|
||||
@ -402546,7 +402551,7 @@
|
||||
if (t5 == null)
|
||||
t5 = J.$index$asx(t3.$index(0, _s2_), _s13_0);
|
||||
}
|
||||
t5 = A.TextButton$(false, new A.ConstrainedBox(B.BoxConstraints_mlX5, new A.Padding(B.EdgeInsets_0_8_0_8, A.Text$(t5, _null, _null, _null, _null, _null, _null, B.TextAlign_2, _null, _null), _null), _null), _null, new A._ReviewAppState_build_closure(_this, context, store), _null);
|
||||
t5 = A.TextButton$(false, new A.ConstrainedBox(B.BoxConstraints_mlX5, new A.Padding(B.EdgeInsets_0_16_0_16, A.Text$(t5, _null, _null, _null, _null, _null, _null, B.TextAlign_2, _null, _null), _null), _null), _null, new A._ReviewAppState_build_closure(_this, context, store), _null);
|
||||
if (_this._likesTheApp == null) {
|
||||
t1.toString;
|
||||
t1 = J.$index$asx(t3.$index(0, t4), _s11_);
|
||||
@ -402559,7 +402564,7 @@
|
||||
t1 = J.$index$asx(t3.$index(0, _s2_), _s10_);
|
||||
}
|
||||
t3 = type$.JSArray_legacy_Widget;
|
||||
return new A.Padding(B.EdgeInsets_0_8_0_0, A.FormCard$(_null, A._setArrayType([new A.SizedBox(_null, 12, _null, _null), t2, new A.SizedBox(_null, 16, _null, _null), A.Wrap$(B.WrapAlignment_0, A._setArrayType([t5, A.TextButton$(false, new A.ConstrainedBox(B.BoxConstraints_mlX5, new A.Padding(B.EdgeInsets_0_8_0_8, A.Text$(t1, _null, _null, _null, _null, _null, _null, B.TextAlign_2, _null, _null), _null), _null), _null, new A._ReviewAppState_build_closure0(_this, store), _null)], t3), B.WrapCrossAlignment_0, 0)], t3), _null, B.CrossAxisAlignment_2, false, _null, false, _null), _null);
|
||||
return new A.Padding(B.EdgeInsets_0_8_0_0, A.FormCard$(_null, A._setArrayType([new A.SizedBox(_null, 12, _null, _null), t2, new A.SizedBox(_null, 16, _null, _null), A.Wrap$(B.WrapAlignment_0, A._setArrayType([t5, A.TextButton$(false, new A.ConstrainedBox(B.BoxConstraints_mlX5, new A.Padding(B.EdgeInsets_0_16_0_16, A.Text$(t1, _null, _null, _null, _null, _null, _null, B.TextAlign_2, _null, _null), _null), _null), _null, new A._ReviewAppState_build_closure0(_this, store), _null)], t3), B.WrapCrossAlignment_0, 0)], t3), _null, B.CrossAxisAlignment_2, false, _null, false, _null), _null);
|
||||
}
|
||||
};
|
||||
A._ReviewAppState_build_closure.prototype = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user