1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Admin Portal - Profile

This commit is contained in:
hillelcoren 2024-05-19 10:34:19 +00:00
parent 50b6ee80b4
commit cc606fff00

View File

@ -396928,7 +396928,11 @@
A.SettingsEntity.prototype = {
get$isTaskRoundingCustom() {
var t1 = this.taskRoundToNearest;
return t1 === 0 || !J.contains$1$asx(B.Map_quqNA.get$values(B.Map_quqNA), t1);
if ((t1 == null ? null : t1 !== 1) === true)
t1 = t1 === 0 || !J.contains$1$asx(B.Map_quqNA.get$values(B.Map_quqNA), t1);
else
t1 = false;
return t1;
},
getFieldsForSection$1(section) {
var t1 = this.pdfVariables;
@ -538871,7 +538875,8 @@
this._widget.viewModel.onSavePressed.call$1(context);
},
build$1(context) {
var viewModel, product, company, t2, t3, t4, t0, t5, t6, t7, t8, t9, t10, t11, t12, _this = this, _null = null,
var viewModel, product, company, t2, t3, t4, t0, t5, t6, t7, t8, t9, t10, t11, t12, t13, _this = this, _null = null,
_s9_ = "image_url",
t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.AppLocalization);
t1.toString;
viewModel = _this._widget.viewModel;
@ -538969,26 +538974,35 @@
t9 = t1.get$notificationThreshold();
t12 = company.stockNotificationThreshold;
if (t12 !== 0) {
t2 = t4.$index(0, t2);
t2.toString;
t2 = J.$index$asx(t2, "default");
if (t2 == null) {
t2 = t4.$index(0, "en");
t2.toString;
t2 = J.$index$asx(t2, "default");
t2.toString;
t13 = t4.$index(0, t2);
t13.toString;
t13 = J.$index$asx(t13, "default");
if (t13 == null) {
t13 = t4.$index(0, "en");
t13.toString;
t13 = J.$index$asx(t13, "default");
t13.toString;
}
t12 = " \u2022 " + t2 + " " + t12;
t2 = t12;
t12 = " \u2022 " + t13 + " " + t12;
} else
t2 = "";
t11.push(A.DecoratedFormField$(false, _null, false, _this._notificationThresholdController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_2_false_false, t9 + t2, _null, _null, false, _null, _null, t5, true, _null, _null, B.TextAlign_4, _null));
t12 = "";
t11.push(A.DecoratedFormField$(false, _null, false, _this._notificationThresholdController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_2_false_false, t9 + t12, _null, _null, false, _null, _null, t5, true, _null, _null, B.TextAlign_4, _null));
}
B.JSArray_methods.addAll$1(t8, t11);
}
t7.push(A.FormCard$(_null, t8, _null, _null, false, _null, false, _null, _null));
}
t7.push(A.FormCard$(_null, A._setArrayType([A.DecoratedFormField$(false, _null, false, _this._maxQuantityController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_2_false_false, t1.get$maxQuantity(), _null, _null, false, _null, _null, t5, true, _null, _null, B.TextAlign_4, _null), A.DecoratedFormField$(false, _null, false, _this._imageUrlController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_6_null_null, t1.get$imageUrl(), _null, _null, false, _null, _null, t5, true, _null, _null, B.TextAlign_4, _null)], t10), _null, _null, false, _null, true, _null, _null));
t1 = A.DecoratedFormField$(false, _null, false, _this._maxQuantityController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_2_false_false, t1.get$maxQuantity(), _null, _null, false, _null, _null, t5, true, _null, _null, B.TextAlign_4, _null);
t2 = t4.$index(0, t2);
t2.toString;
t2 = J.$index$asx(t2, _s9_);
if (t2 == null) {
t2 = t4.$index(0, "en");
t2.toString;
t2 = J.$index$asx(t2, _s9_);
t2.toString;
}
t7.push(A.FormCard$(_null, A._setArrayType([t1, A.DecoratedFormField$(false, _null, false, _this._imageUrlController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_6_null_null, t2, _null, _null, false, _null, _null, t5, true, _null, _null, B.TextAlign_4, _null)], t10), _null, _null, false, _null, true, _null, _null));
return A.EditScaffold$(_null, _null, new A.AppForm(t6, _null, new A.ScrollableListView(t7, _null, _null, _null, false, new A.ValueKey("__product_" + product.id + "_" + product.updatedAt + "__", type$.ValueKey_String)), _this._product_edit$_focusNode, _null), _null, product, _null, false, _null, new A._ProductEditState_build_closure6(viewModel), t5, _null, t3);
}
};
@ -539937,9 +539951,6 @@
t4 = product.maxQuantity;
if (t4 > 0)
fields.$indexSet(0, t1.get$maxQuantity(), A.formatNumber(t4, context, _null, _null, B.FormatNumberType_2, true, _null, _null, false));
t4 = product.imageUrl;
if (t4.length !== 0)
fields.$indexSet(0, t1.get$imageUrl(), t4);
t1 = t2.$index(0, t3);
t1.toString;
t1 = J.$index$asx(t1, "price");
@ -539949,7 +539960,15 @@
t3.toString;
t3 = J.$index$asx(t3, "cost");
t3.toString;
return new A.ScrollableListView(A._setArrayType([A.EntityHeader$(product, t1, t3, company.enableProductCost ? A.formatNumber(product.cost, context, _null, _null, B.FormatNumberType_0, false, _null, _null, false) : _null, _null, _null, t4), new A.ListDivider(_null), new A.FieldGrid(fields, _null), new A.Padding(new A.EdgeInsets(20, 20, 20, 20), A.Text$(product.notes, _null, _null, _null, _null, _null, A.TextStyle$(_null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, 16, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), _null, _null, _null), _null)], type$.JSArray_Widget), _null, _null, _null, false, _null);
t1 = A._setArrayType([A.EntityHeader$(product, t1, t3, company.enableProductCost ? A.formatNumber(product.cost, context, _null, _null, B.FormatNumberType_0, false, _null, _null, false) : _null, _null, _null, t4), new A.ListDivider(_null), new A.FieldGrid(fields, _null)], type$.JSArray_Widget);
t2 = product.notes;
if (t2.length !== 0)
t1.push(new A.Padding(new A.EdgeInsets(20, 20, 20, 0), A.Text$(t2, _null, _null, _null, _null, _null, A.TextStyle$(_null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, 16, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), _null, _null, _null), _null));
t2 = product.imageUrl;
if (t2.length !== 0)
t1.push(new A.Padding(new A.EdgeInsets(20, 20, 20, 0), A.Image$network(t2, B.BoxFit_1, _null, _null, _null, _null, 1 / 0), _null));
t1.push(new A.SizedBox(_null, 20, _null, _null));
return new A.ScrollableListView(t1, _null, _null, _null, false, _null);
}
};
A.ProductViewScreen.prototype = {
@ -565797,7 +565816,7 @@
call$1(b) {
var t1 = this.value;
if (t1 === true)
t1 = 300;
t1 = 900;
else
t1 = t1 === false ? 1 : null;
b.get$_settings_model$_$this()._taskRoundToNearest = t1;
@ -589010,21 +589029,6 @@
t1 = t2;
return t1;
},
get$imageUrl() {
var _s9_ = "image_url",
t1 = $.$get$LocalizationsProvider__localizedValues(),
t2 = t1.$index(0, this.localeCode);
t2.toString;
t2 = J.$index$asx(t2, _s9_);
if (t2 == null) {
t1 = t1.$index(0, "en");
t1.toString;
t1 = J.$index$asx(t1, _s9_);
t1.toString;
} else
t1 = t2;
return t1;
},
get$newSchedule() {
var _s12_ = "new_schedule",
t1 = $.$get$LocalizationsProvider__localizedValues(),