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-11-08 19:34:46 +00:00
parent 7b019245ba
commit b75e0d827e

View File

@ -72491,7 +72491,7 @@
handleRecurringExpenseAction_closure1: function handleRecurringExpenseAction_closure1() {
},
handleTaskAction: function(context, tasks, action) {
var store, state, t1, t2, t3, task, t4, t5, client, taskIds, items, _i, message, _null = null, _s6_ = ":value",
var store, state, t1, t2, task, t3, t4, client, taskIds, items, message, _i, _null = null, _s6_ = ":value",
_s12_ = "_dispatchers";
if (tasks.length === 0)
return;
@ -72499,14 +72499,13 @@
state = store.get$_store$_state();
t1 = type$.legacy_AppLocalization;
t2 = L.Localizations_of(context, C.Type_AppLocalization_KyD, t1);
t3 = type$.legacy_TaskEntity;
task = t3._as(C.JSArray_methods.get$first(tasks));
t4 = state.userCompanyStates;
t5 = state.uiState.selectedCompanyIndex;
client = J.$index$asx(t4._list, t5).clientState.$get$1(0, task.clientId);
t5 = H._arrayInstanceType(tasks);
t4 = t5._eval$1("MappedListIterable<1,String*>");
taskIds = P.List_List$of(new H.MappedListIterable(tasks, new U.handleTaskAction_closure(), t4), true, t4._eval$1("ListIterable.E"));
task = type$.legacy_TaskEntity._as(C.JSArray_methods.get$first(tasks));
t3 = state.userCompanyStates;
t4 = state.uiState.selectedCompanyIndex;
client = J.$index$asx(t3._list, t4).clientState.$get$1(0, task.clientId);
t4 = H._arrayInstanceType(tasks);
t3 = t4._eval$1("MappedListIterable<1,String*>");
taskIds = P.List_List$of(new H.MappedListIterable(tasks, new U.handleTaskAction_closure(), t3), true, t3._eval$1("ListIterable.E"));
switch (action) {
case C.EntityAction_edit:
M.editEntity(_null, context, task, true, _null);
@ -72522,11 +72521,8 @@
break;
case C.EntityAction_invoiceTask:
C.JSArray_methods.sort$1(tasks, new U.handleTaskAction_closure2());
t1 = t5._eval$1("MappedIterable<1,InvoiceItemEntity*>");
items = P.List_List$of(new H.MappedIterable(new H.WhereIterable(tasks, new U.handleTaskAction_closure3(), t5._eval$1("WhereIterable<1>")), new U.handleTaskAction_closure4(context), t1), true, t1._eval$1("Iterable.E"));
for (t1 = tasks.length, _i = 0; _i < t1; ++_i)
if (t3._as(tasks[_i]).projectId.length !== 0)
break;
t1 = t4._eval$1("MappedIterable<1,InvoiceItemEntity*>");
items = P.List_List$of(new H.MappedIterable(new H.WhereIterable(tasks, new U.handleTaskAction_closure3(), t4._eval$1("WhereIterable<1>")), new U.handleTaskAction_closure4(context), t1), true, t1._eval$1("Iterable.E"));
if (items.length !== 0)
M.createEntity(_null, _null, context, Q.InvoiceEntity_InvoiceEntity(client, _null, _null, state, _null).rebuild$1(new U.handleTaskAction_closure5(items)), _null, false);
break;
@ -106500,7 +106496,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.63", "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.64", "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)
@ -106523,9 +106519,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.63"), Q.Version_parse(minClientVersion));
t2 = Q.Version__compare(Q.Version_parse("5.0.64"), Q.Version_parse(minClientVersion));
if (t2 < 0)
throw H.wrapException("Error: client not supported, please update to the latest version [Current v5.0.63 < Minimum v" + H.S(minClientVersion) + "]");
throw H.wrapException("Error: client not supported, please update to the latest version [Current v5.0.64 < Minimum v" + H.S(minClientVersion) + "]");
else {
t2 = Q.Version__compare(Q.Version_parse(serverVersion), Q.Version_parse("5.0.4"));
if (t2 < 0)
@ -308645,8 +308641,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.63");
if (!J.$eq$(appVersion, "5.0.63")) {
prefs._setValue$3("String", "app_version", "5.0.64");
if (!J.$eq$(appVersion, "5.0.64")) {
$async$self.authRepository.delete$0(0);
$async$self.uiRepository.delete$0(0);
$async$self.staticRepository.delete$0(0);
@ -309679,7 +309675,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.63".split(".")));
return C.JSString_methods.$add(version + D.getPlatformLetter(), C.JSArray_methods.get$last("5.0.64".split(".")));
},
get$historyList: function() {
var _this = this,
@ -366200,7 +366196,7 @@
};
V._showAbout__closure9.prototype = {
call$0: function() {
return T.launch("https://github.com/invoiceninja", null, false);
return T.launch("https://github.com/invoiceninja/", null, false);
},
"call*": "call$0",
$requiredArgCount: 0,