From 973a8e4115b907b7304916cb45d075e74ec59ab0 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Sun, 3 Jul 2022 07:03:43 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index e70be72d098a..02f611615db2 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -59059,7 +59059,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.85", "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.86", "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) @@ -59082,9 +59082,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.85"), A.Version_parse(minClientVersion)); + t2 = A.Version__compare(A.Version_parse("5.0.86"), A.Version_parse(minClientVersion)); if (t2 < 0) - throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.85 < Minimum v" + A.S(minClientVersion) + "]"); + throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.86 < Minimum v" + A.S(minClientVersion) + "]"); else { t2 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4")); if (t2 < 0) @@ -342508,7 +342508,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.85".split("."))); + return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.86".split("."))); }, get$historyList() { var _this = this, @@ -398054,7 +398054,9 @@ t2 = J.$index$asx(t3.$index(0, t2), "initial_email"); t2 = A.Text$(t2 == null ? "" : t2, _null, _null, _null, _null, _null, _null, _null, _null, _null); t3 = invoice.entityType; - if (t3 === B.EntityType_quote) + if (t3 === B.EntityType_purchaseOrder) + t7 = B.EmailTemplate_purchase_order; + else if (t3 === B.EntityType_quote) t7 = B.EmailTemplate_quote; else t7 = t3 === B.EntityType_credit ? B.EmailTemplate_credit : B.EmailTemplate_invoice; @@ -398063,8 +398065,6 @@ t7 = A._setArrayType([A.DropdownMenuItem$(t2, _null, t7, t8)], t9); if (t3 === B.EntityType_invoice) B.JSArray_methods.addAll$1(t7, A._setArrayType([A.DropdownMenuItem$(A.Text$(t1.get$firstReminder(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, B.EmailTemplate_reminder1, t8), A.DropdownMenuItem$(A.Text$(t1.get$secondReminder(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, B.EmailTemplate_reminder2, t8), A.DropdownMenuItem$(A.Text$(t1.get$thirdReminder(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, B.EmailTemplate_reminder3, t8)], t9)); - if (t3 === B.EntityType_purchaseOrder) - B.JSArray_methods.addAll$1(t7, A._setArrayType([A.DropdownMenuItem$(A.Text$(t1.get$purchaseOrder(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, B.EmailTemplate_purchase_order, t8)], t9)); t2 = settings.emailSubjectCustom1; if ((t2 == null ? "" : t2).length !== 0) t7.push(A.DropdownMenuItem$(A.Text$(t1.get$firstCustom(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, B.EmailTemplate_custom1, t8));