mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
Admin Portal - Profile
This commit is contained in:
parent
5f414c36b3
commit
eb9a48675a
54
public/main.profile.dart.js
vendored
54
public/main.profile.dart.js
vendored
@ -92879,12 +92879,15 @@
|
||||
this.$this = t0;
|
||||
this.context = t1;
|
||||
},
|
||||
_DrawerTileState_build_closure1: function _DrawerTileState_build_closure1(t0, t1, t2, t3) {
|
||||
_DrawerTileState_build_closure1: function _DrawerTileState_build_closure1(t0, t1, t2, t3, t4, t5, t6) {
|
||||
var _ = this;
|
||||
_.context = t0;
|
||||
_.navigator = t1;
|
||||
_.store = t2;
|
||||
_.uiState = t3;
|
||||
_.$this = t0;
|
||||
_.context = t1;
|
||||
_.navigator = t2;
|
||||
_.localization = t3;
|
||||
_.store = t4;
|
||||
_.uiState = t5;
|
||||
_.state = t6;
|
||||
},
|
||||
_DrawerTileState_build_closure2: function _DrawerTileState_build_closure2(t0, t1, t2) {
|
||||
this.$this = t0;
|
||||
@ -331722,9 +331725,12 @@
|
||||
}
|
||||
if (userCompany.can$2(B.UserPermission_create, B.EntityType_payment)) {
|
||||
t7 = t3 === B.EntityType_invoice;
|
||||
if (!(t7 && t4 === "4") && t3 !== B.EntityType_quote && t3 !== B.EntityType_recurringInvoice && !_this.get$isCancelledOrReversed() && t7)
|
||||
B.JSArray_methods.addAll$1(actions, A._setArrayType([B.EntityAction_newPayment, B.EntityAction_markPaid, B.EntityAction_autoBill], t1));
|
||||
else if (t3 === B.EntityType_credit) {
|
||||
if (!(t7 && t4 === "4") && t3 !== B.EntityType_quote && t3 !== B.EntityType_recurringInvoice && !_this.get$isCancelledOrReversed() && t7) {
|
||||
t1 = A._setArrayType([B.EntityAction_newPayment, B.EntityAction_markPaid], t1);
|
||||
if (client != null && client.gatewayTokens._list.length !== 0)
|
||||
t1.push(B.EntityAction_autoBill);
|
||||
B.JSArray_methods.addAll$1(actions, t1);
|
||||
} else if (t3 === B.EntityType_credit) {
|
||||
t1 = !t5;
|
||||
if ((t1 ? _this.balance : _this.amount) < 0)
|
||||
actions.push(B.EntityAction_markPaid);
|
||||
@ -432074,8 +432080,8 @@
|
||||
t2 = isSelected ? 1 : 0.8;
|
||||
return A.Tooltip$(new A.ColoredBox(color, A.Opacity$(A.InkWell$(false, _null, true, new A.SizedBox(_null, 40, A.Icon$(_this._widget.icon, textColor, _null), _null), _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, onLongPress, onTap, _null, _null, _null, _null, _null, _null, _null), t2), _null), t1);
|
||||
}
|
||||
if (_this._widget.title === t4.get$dashboard())
|
||||
iconWidget = A.IconButton$(B.Alignment_0_0, _null, _null, true, A.Icon$(B.IconData_58727_MaterialIcons_null_false, textColor, _null), _null, new A._DrawerTileState_build_closure1(context, $navigator, store, uiState), B.EdgeInsets_8_8_8_8, _null, _null, _null);
|
||||
if (B.JSArray_methods.contains$1(A._setArrayType([t4.get$dashboard(), t4.get$settings()], type$.JSArray_legacy_String), _this._widget.title))
|
||||
iconWidget = A.IconButton$(B.Alignment_0_0, _null, _null, true, A.Icon$(B.IconData_58727_MaterialIcons_null_false, textColor, _null), _null, new A._DrawerTileState_build_closure1(_this, context, $navigator, t4, store, uiState, t1), B.EdgeInsets_8_8_8_8, _null, _null, _null);
|
||||
else if (userCompany.can$2(B.UserPermission_create, _this._widget.entityType)) {
|
||||
t4 = prefState.enableTooltips ? _this._widget.iconTooltip : _null;
|
||||
iconWidget = A.IconButton$(B.Alignment_0_0, _null, _null, true, A.Icon$(B.IconData_57424_MaterialIcons_null_false, textColor, _null), _null, new A._DrawerTileState_build_closure2(_this, context, $navigator), B.EdgeInsets_8_8_8_8, _null, t4, _null);
|
||||
@ -432122,14 +432128,26 @@
|
||||
};
|
||||
A._DrawerTileState_build_closure1.prototype = {
|
||||
call$0() {
|
||||
var t1, t2, _this = this;
|
||||
var t1, t2, _this = this, _null = null;
|
||||
if (A.getLayout(_this.context) === B.AppLayout_mobile)
|
||||
_this.navigator.pop$0();
|
||||
t1 = _this.uiState;
|
||||
t1 = t1.get$mainRoute() === "dashboard" && t1.filter === "" ? null : "";
|
||||
t2 = _this.store.__Store__dispatchers_F;
|
||||
t2 === $ && A.throwUnnamedLateFieldNI();
|
||||
t2[0].call$1(new A.ViewDashboard(false, t1));
|
||||
t1 = _this.$this;
|
||||
t2 = _this.localization;
|
||||
if (t1._widget.title === t2.get$dashboard()) {
|
||||
t1 = _this.uiState;
|
||||
t1 = t1.get$mainRoute() === "dashboard" && t1.filter === "" ? _null : "";
|
||||
t2 = _this.store.__Store__dispatchers_F;
|
||||
t2 === $ && A.throwUnnamedLateFieldNI();
|
||||
t2[0].call$1(new A.ViewDashboard(false, t1));
|
||||
} else if (t1._widget.title === t2.get$settings()) {
|
||||
t1 = _this.state;
|
||||
t2 = t1.uiState.selectedCompanyIndex;
|
||||
t2 = t1.userCompanyStates._list[t2].userCompany.company;
|
||||
t1 = _this.store.__Store__dispatchers_F;
|
||||
t1 === $ && A.throwUnnamedLateFieldNI();
|
||||
t1[0].call$1(new A.ViewSettings(t2, _null, _null, _null, false, _null, false, _null));
|
||||
t1[0].call$1(new A.FilterSettings(""));
|
||||
}
|
||||
},
|
||||
$signature: 1
|
||||
};
|
||||
@ -455615,8 +455633,10 @@
|
||||
}
|
||||
t4.push(A.Expanded$(_this._invoice_edit_desktop$_response == null ? A.Container$(_null, _null, B.Clip_0, B.Color_4292927712, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null) : A.PdfPreview$(false, false, new A.__PdfPreviewState_build_closure1(_this), false, false, false, 800, A._setArrayType([_this._currentPage - 1], type$.JSArray_legacy_int), _null), 1));
|
||||
t1 = A._setArrayType([A.Column$(t4, B.CrossAxisAlignment_3, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1)], t3);
|
||||
if (_this._invoice_edit_desktop$_isLoading)
|
||||
if (_this._invoice_edit_desktop$_isLoading && _this._invoice_edit_desktop$_response == null)
|
||||
t1.push(A.Center$(A.CircularProgressIndicator$(_null, _null, _null, _null, _null, 4, _null, _null), _null, _null));
|
||||
if (_this._invoice_edit_desktop$_isLoading)
|
||||
t1.push(A.LinearProgressIndicator$());
|
||||
return A.Container$(_null, new A.Stack(B.Alignment_0_m1, _null, B.StackFit_0, B.Clip_1, t1, _null), B.Clip_0, _null, _null, _null, _null, t2, _null, _null, _null, _null, _null, _null);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user