1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-04-25 18:02:35 +00:00
parent 9ef07769f4
commit 2597584552

View File

@ -118142,6 +118142,12 @@
$get$0$x(receiver) {
return J.getInterceptor$x(receiver).$get$0(receiver);
},
$get$2$x(receiver, a0, a1) {
return J.getInterceptor$x(receiver).$get$2(receiver, a0, a1);
},
$get$3$rawResponse$x(receiver, a0, a1, a2) {
return J.getInterceptor$x(receiver).$get$3$rawResponse(receiver, a0, a1, a2);
},
$gt$n(receiver, a0) {
if (typeof receiver == "number" && typeof a0 == "number")
return receiver > a0;
@ -379923,7 +379929,7 @@
var widget, onTap, _this = this, _null = null,
t1 = _this.value;
if ((t1 == null ? "" : t1).length === 0)
return _this.child;
return new A.SizedBox(_null, _null, _null, _null);
widget = _this.child;
if (widget == null)
widget = A.Text$(t1, _null, _null, _null, _null, _null, _null, _null, _null, _null);
@ -380148,13 +380154,59 @@
this.super$State$didChangeDependencies();
},
runCheck$0() {
var t1, state, credentials, _this = this;
_this.setState$1(new A._HealthCheckDialogState_runCheck_closure(_this));
t1 = _this._framework$_element;
t1.toString;
state = A._lateReadCheck(A.StoreProvider_of(t1, type$.legacy_AppState).__Store__state, "_state");
credentials = state.get$credentials(state);
new A.WebClient().$get$2(0, credentials.url + "/health_check", credentials.token).then$1$1(0, new A._HealthCheckDialogState_runCheck_closure0(_this), type$.Null).catchError$1(new A._HealthCheckDialogState_runCheck_closure1(_this));
var $async$goto = 0,
$async$completer = A._makeAsyncAwaitCompleter(type$.dynamic),
$async$handler = 1, $async$currentError, $async$next = [], $async$self = this, webClient, state, t1, t2, exception, credentials, $async$exception;
var $async$runCheck$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
if ($async$errorCode === 1) {
$async$currentError = $async$result;
$async$goto = $async$handler;
}
while (true)
switch ($async$goto) {
case 0:
// Function start
$async$self.setState$1(new A._HealthCheckDialogState_runCheck_closure($async$self));
webClient = new A.WebClient();
t1 = $async$self._framework$_element;
t1.toString;
state = A._lateReadCheck(A.StoreProvider_of(t1, type$.legacy_AppState).__Store__state, "_state");
$async$handler = 3;
t1 = state;
t2 = t1.userCompanyStates;
t1 = t1.uiState.selectedCompanyIndex;
$async$goto = 6;
return A._asyncAwait(J.$get$3$rawResponse$x(webClient, t2._list[t1].userCompany.account.defaultUrl + "/update", "", true), $async$runCheck$0);
case 6:
// returning from await.
$async$handler = 1;
// goto after finally
$async$goto = 5;
break;
case 3:
// catch
$async$handler = 2;
$async$exception = $async$currentError;
// goto after finally
$async$goto = 5;
break;
case 2:
// uncaught
// goto rethrow
$async$goto = 1;
break;
case 5:
// after finally
credentials = J.get$credentials$z(state);
J.$get$2$x(webClient, credentials.url + "/health_check", credentials.token).then$1$1(0, new A._HealthCheckDialogState_runCheck_closure0($async$self), type$.Null).catchError$1(new A._HealthCheckDialogState_runCheck_closure1($async$self));
// implicit return
return A._asyncReturn(null, $async$completer);
case 1:
// rethrow
return A._asyncRethrow($async$currentError, $async$completer);
}
});
return A._asyncStartSync($async$runCheck$0, $async$completer);
},
clearCache$0() {
var t1, store, state, credentials, _this = this;