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 2021-10-31 19:15:01 +00:00
parent 52bf0fc263
commit 6b8043ebe6

View File

@ -106404,7 +106404,7 @@
if (C.JSString_methods.startsWith$1(url, "https://invoicing.co"))
secret = "";
t1 = type$.legacy_String;
headers = P.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.62", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1);
headers = P.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-VERSION", "5.0.63", "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)
@ -106427,9 +106427,9 @@
else if (serverVersion == null)
throw H.wrapException("Error: please check that Invoice Ninja v5 is installed on the server");
else {
t2 = Q.Version__compare(Q.Version_parse("5.0.62"), Q.Version_parse(minClientVersion));
t2 = Q.Version__compare(Q.Version_parse("5.0.63"), Q.Version_parse(minClientVersion));
if (t2 < 0)
throw H.wrapException("Error: client not supported, please update to the latest version [Current v5.0.62 < Minimum v" + H.S(minClientVersion) + "]");
throw H.wrapException("Error: client not supported, please update to the latest version [Current v5.0.63 < Minimum v" + H.S(minClientVersion) + "]");
else {
t2 = Q.Version__compare(Q.Version_parse(serverVersion), Q.Version_parse("5.0.4"));
if (t2 < 0)
@ -308597,8 +308597,8 @@
// returning from await.
prefs = $async$result;
appVersion = H._asStringQ(J.$index$asx(prefs._preferenceCache, "app_version"));
prefs._setValue$3("String", "app_version", "5.0.62");
if (!J.$eq$(appVersion, "5.0.62")) {
prefs._setValue$3("String", "app_version", "5.0.63");
if (!J.$eq$(appVersion, "5.0.63")) {
$async$self.authRepository.delete$0(0);
$async$self.uiRepository.delete$0(0);
$async$self.staticRepository.delete$0(0);
@ -309592,7 +309592,7 @@
version = "v" + (t1 == null ? "" : t1);
if (version.length !== 0)
version += "-";
return C.JSString_methods.$add(version + D.getPlatformLetter(), C.JSArray_methods.get$last("5.0.62".split(".")));
return C.JSString_methods.$add(version + D.getPlatformLetter(), C.JSArray_methods.get$last("5.0.63".split(".")));
},
get$historyList: function() {
var _this = this,
@ -368347,17 +368347,16 @@
var t1, _this = this;
_this.super$State$initState();
t1 = _this._widget;
t1 = t1.viewModel.authState.get$isHosted();
_this._isSelfHosted = !t1;
if (t1) {
t1 = window.document.documentElement;
t1.toString;
t1 = t1.getAttribute("data-" + new W._DataAttributeMap(new W._ElementAttributeMap(t1))._toHyphenedName$1("login")) === "true";
} else
t1 = true;
t1 = !t1.viewModel.authState.get$isHosted();
_this._isSelfHosted = t1;
if (t1) {
_this._emailLogin = true;
_this._createAccount = false;
} else {
t1 = window.document.documentElement;
t1.toString;
if (t1.getAttribute("data-" + new W._DataAttributeMap(new W._ElementAttributeMap(t1))._toHyphenedName$1("login")) === "true")
_this._createAccount = false;
}
},
didChangeDependencies$0: function() {