mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Admin Portal - Profile
This commit is contained in:
parent
d62bb40541
commit
f9d5a0139e
69
public/main.profile.dart.js
vendored
69
public/main.profile.dart.js
vendored
@ -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.112", "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.113", "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.112"), A.Version_parse(minClientVersion));
|
||||
t1 = A.Version__compare(A.Version_parse("5.0.113"), A.Version_parse(minClientVersion));
|
||||
if (t1 < 0)
|
||||
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.112 < Minimum v" + A.S(minClientVersion) + "]");
|
||||
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.113 < Minimum v" + A.S(minClientVersion) + "]");
|
||||
else {
|
||||
t1 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4"));
|
||||
if (t1 < 0)
|
||||
@ -380914,7 +380914,7 @@
|
||||
emailCredit$body$CreditRepository(credentials, credit, template, subject, body, ccEmail) {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.legacy_InvoiceEntity),
|
||||
$async$returnValue, t1, response;
|
||||
$async$returnValue, response, t1;
|
||||
var $async$emailCredit$6 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1)
|
||||
return A._asyncRethrow($async$result, $async$completer);
|
||||
@ -380923,8 +380923,16 @@
|
||||
case 0:
|
||||
// Function start
|
||||
t1 = type$.legacy_String;
|
||||
t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
|
||||
t1.$indexSet(0, "entity", A.S(credit.entityType));
|
||||
t1.$indexSet(0, "entity_id", credit.id);
|
||||
t1.$indexSet(0, "template", "email_template_" + A.S(template));
|
||||
t1.$indexSet(0, "body", body);
|
||||
t1.$indexSet(0, "subject", subject);
|
||||
if (A.supportsLatestFeatures())
|
||||
t1.$indexSet(0, "cc_email", ccEmail);
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["entity", A.S(credit.entityType), "entity_id", credit.id, "template", "email_template_" + A.S(template), "body", body, "subject", subject, "cc_email", ccEmail], t1, t1))), $async$emailCredit$6);
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(t1)), $async$emailCredit$6);
|
||||
case 3:
|
||||
// returning from await.
|
||||
response = $async$result;
|
||||
@ -381926,7 +381934,7 @@
|
||||
emailInvoice$body$InvoiceRepository(credentials, invoice, template, subject, body, ccEmail) {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.legacy_InvoiceEntity),
|
||||
$async$returnValue, t1, response;
|
||||
$async$returnValue, response, t1;
|
||||
var $async$emailInvoice$6 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1)
|
||||
return A._asyncRethrow($async$result, $async$completer);
|
||||
@ -381935,8 +381943,16 @@
|
||||
case 0:
|
||||
// Function start
|
||||
t1 = type$.legacy_String;
|
||||
t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
|
||||
t1.$indexSet(0, "entity", A.S(invoice.entityType));
|
||||
t1.$indexSet(0, "entity_id", invoice.id);
|
||||
t1.$indexSet(0, "template", "email_template_" + A.S(template));
|
||||
t1.$indexSet(0, "body", body);
|
||||
t1.$indexSet(0, "subject", subject);
|
||||
if (A.supportsLatestFeatures())
|
||||
t1.$indexSet(0, "cc_email", ccEmail);
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["entity", A.S(invoice.entityType), "entity_id", invoice.id, "template", "email_template_" + A.S(template), "body", body, "subject", subject, "cc_email", ccEmail], t1, t1))), $async$emailInvoice$6);
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(t1)), $async$emailInvoice$6);
|
||||
case 3:
|
||||
// returning from await.
|
||||
response = $async$result;
|
||||
@ -383147,7 +383163,7 @@
|
||||
emailPurchaseOrder$body$PurchaseOrderRepository(credentials, purchaseOrder, template, subject, body, ccEmail) {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.legacy_InvoiceEntity),
|
||||
$async$returnValue, t1, response;
|
||||
$async$returnValue, response, t1;
|
||||
var $async$emailPurchaseOrder$6 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1)
|
||||
return A._asyncRethrow($async$result, $async$completer);
|
||||
@ -383156,8 +383172,16 @@
|
||||
case 0:
|
||||
// Function start
|
||||
t1 = type$.legacy_String;
|
||||
t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
|
||||
t1.$indexSet(0, "entity", A.S(purchaseOrder.entityType));
|
||||
t1.$indexSet(0, "entity_id", purchaseOrder.id);
|
||||
t1.$indexSet(0, "template", "email_template_" + A.S(template));
|
||||
t1.$indexSet(0, "body", body);
|
||||
t1.$indexSet(0, "subject", subject);
|
||||
if (A.supportsLatestFeatures())
|
||||
t1.$indexSet(0, "cc_email", ccEmail);
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["entity", A.S(purchaseOrder.entityType), "entity_id", purchaseOrder.id, "template", "email_template_" + A.S(template), "body", body, "subject", subject, "cc_email", ccEmail], t1, t1))), $async$emailPurchaseOrder$6);
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(t1)), $async$emailPurchaseOrder$6);
|
||||
case 3:
|
||||
// returning from await.
|
||||
response = $async$result;
|
||||
@ -383385,7 +383409,7 @@
|
||||
emailQuote$body$QuoteRepository(credentials, quote, template, subject, body, ccEmail) {
|
||||
var $async$goto = 0,
|
||||
$async$completer = A._makeAsyncAwaitCompleter(type$.legacy_InvoiceEntity),
|
||||
$async$returnValue, t1, response;
|
||||
$async$returnValue, response, t1;
|
||||
var $async$emailQuote$6 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
||||
if ($async$errorCode === 1)
|
||||
return A._asyncRethrow($async$result, $async$completer);
|
||||
@ -383394,8 +383418,16 @@
|
||||
case 0:
|
||||
// Function start
|
||||
t1 = type$.legacy_String;
|
||||
t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
|
||||
t1.$indexSet(0, "entity", A.S(quote.entityType));
|
||||
t1.$indexSet(0, "entity_id", quote.id);
|
||||
t1.$indexSet(0, "template", "email_template_" + A.S(template));
|
||||
t1.$indexSet(0, "body", body);
|
||||
t1.$indexSet(0, "subject", subject);
|
||||
if (A.supportsLatestFeatures())
|
||||
t1.$indexSet(0, "cc_email", ccEmail);
|
||||
$async$goto = 3;
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(A.LinkedHashMap_LinkedHashMap$_literal(["entity", A.S(quote.entityType), "entity_id", quote.id, "template", "email_template_" + A.S(template), "body", body, "subject", subject, "cc_email", ccEmail], t1, t1))), $async$emailQuote$6);
|
||||
return A._asyncAwait(B.C_WebClient.post$3$data(credentials.url + "/emails", credentials.token, B.C_JsonCodec.encode$1(t1)), $async$emailQuote$6);
|
||||
case 3:
|
||||
// returning from await.
|
||||
response = $async$result;
|
||||
@ -389480,7 +389512,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.112".split(".")));
|
||||
return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.113".split(".")));
|
||||
},
|
||||
get$historyList() {
|
||||
var _this = this,
|
||||
@ -456104,11 +456136,14 @@
|
||||
if ((t7 == null ? "" : t7).length !== 0)
|
||||
t9.push(A.DropdownMenuItem$(A.Text$(t1.get$thirdCustom(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, B.EmailTemplate_custom3, t10));
|
||||
t1 = type$.JSArray_legacy_Widget;
|
||||
t10 = A.Row$(A._setArrayType([t5, new A.SizedBox(4, _null, _null, _null), new A.DropdownButtonHideUnderline(A.DropdownButton$(_null, _null, _null, 24, false, false, t9, t6, _null, _null, t4, t10), _null), new A.SizedBox(8, _null, _null, _null)], t1), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null);
|
||||
t2 = J.$index$asx(t3.$index(0, t2), _s8_);
|
||||
if (t2 == null)
|
||||
t2 = J.$index$asx(t3.$index(0, "en"), _s8_);
|
||||
return new A.Padding(B.EdgeInsets_24_2_10_0, A.Column$(A._setArrayType([t10, A.DecoratedFormField$(false, _null, false, _this._ccEmailController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_5_null_null, t2, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null)], t1), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), _null);
|
||||
t1 = A._setArrayType([A.Row$(A._setArrayType([t5, new A.SizedBox(4, _null, _null, _null), new A.DropdownButtonHideUnderline(A.DropdownButton$(_null, _null, _null, 24, false, false, t9, t6, _null, _null, t4, t10), _null), new A.SizedBox(8, _null, _null, _null)], t1), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null)], t1);
|
||||
if (A.supportsLatestFeatures()) {
|
||||
t2 = J.$index$asx(t3.$index(0, t2), _s8_);
|
||||
if (t2 == null)
|
||||
t2 = J.$index$asx(t3.$index(0, "en"), _s8_);
|
||||
t1.push(A.DecoratedFormField$(false, _null, false, _this._ccEmailController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_5_null_null, t2, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null));
|
||||
}
|
||||
return new A.Padding(B.EdgeInsets_24_2_10_0, A.Column$(t1, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), _null);
|
||||
},
|
||||
_buildPreview$1(context) {
|
||||
var t1, t2, t3, _this = this, _null = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user