mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Admin Portal - Profile
This commit is contained in:
parent
c9b7084e6d
commit
2b430fe561
50
public/main.profile.dart.js
vendored
50
public/main.profile.dart.js
vendored
@ -83137,10 +83137,12 @@
|
||||
this.$this = t0;
|
||||
this.value = t1;
|
||||
},
|
||||
GatewayConfigSettings: function GatewayConfigSettings(t0, t1, t2) {
|
||||
this.companyGateway = t0;
|
||||
this.viewModel = t1;
|
||||
this.key = t2;
|
||||
GatewayConfigSettings: function GatewayConfigSettings(t0, t1, t2, t3) {
|
||||
var _ = this;
|
||||
_.companyGateway = t0;
|
||||
_.viewModel = t1;
|
||||
_.disasbledFields = t2;
|
||||
_.key = t3;
|
||||
},
|
||||
GatewayConfigSettings_build_closure: function GatewayConfigSettings_build_closure(t0) {
|
||||
this.gateway = t0;
|
||||
@ -83153,14 +83155,15 @@
|
||||
this.$this = t0;
|
||||
this.field = t1;
|
||||
},
|
||||
GatewayConfigField: function GatewayConfigField(t0, t1, t2, t3, t4, t5) {
|
||||
GatewayConfigField: function GatewayConfigField(t0, t1, t2, t3, t4, t5, t6) {
|
||||
var _ = this;
|
||||
_.gateway = t0;
|
||||
_.field = t1;
|
||||
_.value = t2;
|
||||
_.defaultValue = t3;
|
||||
_.onChanged = t4;
|
||||
_.key = t5;
|
||||
_.enabled = t5;
|
||||
_.key = t6;
|
||||
},
|
||||
_GatewayConfigFieldState: function _GatewayConfigFieldState(t0) {
|
||||
var _ = this;
|
||||
@ -374879,7 +374882,6 @@
|
||||
},
|
||||
build$1(_, context) {
|
||||
var t5, gateway, t6, accountId, connectGateways, disableSave, t7, t8, enabledGatewayIds, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, _this = this, _null = null,
|
||||
_s10_ = "account_id",
|
||||
_s32_ = "d14dd26a47cecc30fdd65700bfb67b34",
|
||||
_s13_ = "gateway_setup",
|
||||
_s24_ = "no_payment_types_enabled",
|
||||
@ -374895,7 +374897,7 @@
|
||||
t2 = companyGateway.gatewayId;
|
||||
t5 = t4._map$_map;
|
||||
gateway = t5.$index(0, t2);
|
||||
t6 = J.$index$asx(companyGateway.get$parsedConfig(), _s10_);
|
||||
t6 = J.$index$asx(companyGateway.get$parsedConfig(), "account_id");
|
||||
accountId = J.toString$0$(t6 == null ? "" : t6);
|
||||
t6 = type$.JSArray_legacy_String;
|
||||
connectGateways = A._setArrayType([_s32_, "8fdeed552015b3c7b44ed6c8ebd9e992"], t6);
|
||||
@ -374940,11 +374942,11 @@
|
||||
t4.push(new A.Padding(B.EdgeInsets_0_20_0_0, A.OutlinedButton$(new A.Padding(B.EdgeInsets_8_8_8_8, new A.IconText(t1.get$learnMore().toUpperCase(), B._MdiIconData_ujl, _null, _null, _null), _null), new A._CompanyGatewayEditState_build_closure2(), _null), _null));
|
||||
B.JSArray_methods.addAll$1(t3, t4);
|
||||
} else {
|
||||
t4 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t13), _s10_);
|
||||
t3.push(A.DecoratedFormField$(false, _null, false, false, _null, _null, false, _null, _null, accountId, _null, false, false, _null, B.TextInputType_0_null_null, t4 == null ? J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, "en"), _s10_) : t4, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null));
|
||||
t4 = "__connect_" + t2 + "__";
|
||||
t3.push(new A.GatewayConfigSettings(companyGateway, viewModel, A._setArrayType(["account_id"], t6), new A.ValueKey(t4, type$.ValueKey_legacy_String)));
|
||||
}
|
||||
else
|
||||
t3.push(new A.GatewayConfigSettings(companyGateway, viewModel, new A.ValueKey("__" + t2 + "__", type$.ValueKey_legacy_String)));
|
||||
t3.push(new A.GatewayConfigSettings(companyGateway, viewModel, B.List_empty1, new A.ValueKey("__" + t2 + "__", type$.ValueKey_legacy_String)));
|
||||
t3 = A._setArrayType([A.FormCard$(_null, t3, B.CrossAxisAlignment_3, 4, false, _null, false, _null)], t17);
|
||||
t4 = A._setArrayType([], t17);
|
||||
if (t2 !== "54faab2ab6e3223dbe848b1686490baa")
|
||||
@ -375293,7 +375295,7 @@
|
||||
call$1(field) {
|
||||
var t1 = this.$this,
|
||||
t2 = this.gateway;
|
||||
return new A.GatewayConfigField(t2, field, J.$index$asx(t1.companyGateway.get$parsedConfig(), field), J.$index$asx(t2.get$parsedFields(), field), new A.GatewayConfigSettings_build__closure(t1, field), null);
|
||||
return new A.GatewayConfigField(t2, field, J.$index$asx(t1.companyGateway.get$parsedConfig(), field), J.$index$asx(t2.get$parsedFields(), field), new A.GatewayConfigSettings_build__closure(t1, field), !B.JSArray_methods.contains$1(t1.disasbledFields, field), null);
|
||||
},
|
||||
$signature: 2155
|
||||
};
|
||||
@ -375347,9 +375349,15 @@
|
||||
return t1.obscure;
|
||||
},
|
||||
build$1(_, context) {
|
||||
var options, t2, value, t3, isMultiline, t4, _this = this, _null = null,
|
||||
t1 = _this._widget,
|
||||
label = t1.gateway.id === "d14dd26a37cecc30fdd65700bfb55b23" && t1.field === "apiKey" ? "Secret Key" : A.toTitleCase(t1.field);
|
||||
var label, options, t2, value, t3, isMultiline, t4, t5, _this = this, _null = null,
|
||||
t1 = _this._widget;
|
||||
if (t1.gateway.id === "d14dd26a37cecc30fdd65700bfb55b23" && t1.field === "apiKey")
|
||||
label = "Secret Key";
|
||||
else {
|
||||
t1 = t1.field;
|
||||
t1.toString;
|
||||
label = A.toTitleCase(A.stringReplaceAllUnchecked(t1, "_", " "));
|
||||
}
|
||||
if (B.JSString_methods.startsWith$1(A.S(_this._widget.defaultValue), "[") && B.JSString_methods.endsWith$1(A.S(_this._widget.defaultValue), "]")) {
|
||||
options = A._setArrayType(B.JSString_methods.replaceFirst$2(B.JSString_methods.replaceFirst$2(A.S(_this._widget.defaultValue), "[", ""), "]", "").split(","), type$.JSArray_String);
|
||||
t1 = _this._widget;
|
||||
@ -375371,11 +375379,13 @@
|
||||
return A.CheckboxListTile$(t1.secondary, _null, B.ListTileControlAffinity_0, _null, _null, new A._GatewayConfigFieldState_build_closure2(_this), t2, t3);
|
||||
} else {
|
||||
isMultiline = B.JSArray_methods.contains$1(A._setArrayType(["text", "appleDomainVerification"], type$.JSArray_legacy_String), _this._widget.field);
|
||||
t1 = _this._company_gateway_edit$_textController;
|
||||
t2 = isMultiline ? 6 : 1;
|
||||
t3 = _this._company_gateway_edit$_obscureText$1(_this._widget.field);
|
||||
t4 = isMultiline ? B.TextInputType_1_null_null : B.TextInputType_7_null_null;
|
||||
return A.DecoratedFormField$(false, _null, false, false, t1, _null, true, _null, _null, _null, _null, false, false, _null, t4, label, t2, _null, t3, new A._GatewayConfigFieldState_build_closure3(_this), _null, _null, true, _null, _null, B.TextAlign_4, _null);
|
||||
t1 = _this._widget;
|
||||
t2 = t1.enabled;
|
||||
t3 = _this._company_gateway_edit$_textController;
|
||||
t4 = isMultiline ? 6 : 1;
|
||||
t1 = _this._company_gateway_edit$_obscureText$1(t1.field);
|
||||
t5 = isMultiline ? B.TextInputType_1_null_null : B.TextInputType_7_null_null;
|
||||
return A.DecoratedFormField$(false, _null, false, false, t3, _null, t2, _null, _null, _null, _null, false, false, _null, t5, label, t4, _null, t1, new A._GatewayConfigFieldState_build_closure3(_this), _null, _null, true, _null, _null, B.TextAlign_4, _null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user