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:
parent
1be9dc303b
commit
2f78ceca2f
57
public/main.profile.dart.js
vendored
57
public/main.profile.dart.js
vendored
@ -107649,7 +107649,7 @@
|
||||
A.showDialog(true, new A.confirmCallback_closure(typeToConfirm, callback, t1, title, askForReason, t2 ? null : t1.get$areYouSure()), context, null, true, type$.legacy_AlertDialog);
|
||||
},
|
||||
passwordCallback(alwaysRequire, callback, context) {
|
||||
var user, error, exception, _null = null,
|
||||
var user, error, t4, exception, _null = null,
|
||||
_s21_ = "please_set_a_password",
|
||||
_s12_ = "set_password",
|
||||
store = A.StoreProvider_of(context, type$.legacy_AppState),
|
||||
@ -107659,6 +107659,11 @@
|
||||
t3 = t2.userCompanyStates;
|
||||
t2 = t2.uiState.selectedCompanyIndex;
|
||||
user = t3._list[t2].userCompany.user;
|
||||
t2 = "## Confirm password: " + alwaysRequire + ", " + user.hasPassword + ", " + state.get$hasRecentlyEnteredPassword() + ", " + (user.oauthProvider.length === 0) + ", ";
|
||||
t3 = state;
|
||||
t4 = t3.userCompanyStates;
|
||||
t3 = t3.uiState.selectedCompanyIndex;
|
||||
A.print(t2 + t4._list[t3].userCompany.company.oauthPasswordRequired);
|
||||
if (alwaysRequire && !user.hasPassword) {
|
||||
t1 = t1.localeCode;
|
||||
t2 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t1), _s21_);
|
||||
@ -107668,10 +107673,12 @@
|
||||
if (t1 == null)
|
||||
t1 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, "en"), _s12_);
|
||||
A.showMessageDialog(context, t2, _null, A._setArrayType([A.TextButton$(false, A.Text$(t1.toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A.passwordCallback_closure(store, context), _null)], type$.JSArray_legacy_TextButton));
|
||||
A.print("## 1");
|
||||
return;
|
||||
}
|
||||
if (state.get$hasRecentlyEnteredPassword() && !alwaysRequire) {
|
||||
callback.call$2(_null, _null);
|
||||
A.print("## 2");
|
||||
return;
|
||||
}
|
||||
if (user.oauthProvider.length === 0) {
|
||||
@ -107684,6 +107691,7 @@
|
||||
error = A.unwrapException(exception);
|
||||
A.showErrorDialog(false, context, A.S(error));
|
||||
}
|
||||
A.print("## 6");
|
||||
},
|
||||
fieldCallback(callback, context, field, maxLength, secondaryActions, title) {
|
||||
A.showDialog(false, new A.fieldCallback_closure(callback, field, title, maxLength, secondaryActions), context, null, true, type$.legacy_AlertDialog);
|
||||
@ -110180,17 +110188,18 @@
|
||||
_.pageMargin = t2;
|
||||
_.key = t3;
|
||||
},
|
||||
PdfPreview$(build, canChangeOrientation, canChangePageFormat, canDebug, pages) {
|
||||
return new A.PdfPreview(build, false, false, false, pages, null);
|
||||
PdfPreview$(build, canChangeOrientation, canChangePageFormat, canDebug, maxPageWidth, pages) {
|
||||
return new A.PdfPreview(build, maxPageWidth, false, false, false, pages, null);
|
||||
},
|
||||
PdfPreview: function PdfPreview(t0, t1, t2, t3, t4, t5) {
|
||||
PdfPreview: function PdfPreview(t0, t1, t2, t3, t4, t5, t6) {
|
||||
var _ = this;
|
||||
_.build = t0;
|
||||
_.canChangePageFormat = t1;
|
||||
_.canChangeOrientation = t2;
|
||||
_.canDebug = t3;
|
||||
_.pages = t4;
|
||||
_.key = t5;
|
||||
_.maxPageWidth = t1;
|
||||
_.canChangePageFormat = t2;
|
||||
_.canChangeOrientation = t3;
|
||||
_.canDebug = t4;
|
||||
_.pages = t5;
|
||||
_.key = t6;
|
||||
},
|
||||
_PdfPreviewState: function _PdfPreviewState(t0, t1) {
|
||||
var _ = this;
|
||||
@ -390844,7 +390853,7 @@
|
||||
t5 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, "en"), _s8_);
|
||||
t4.push(A.Container$(_null, A.Wrap$(B.WrapAlignment_2, A._setArrayType([t7, t1, new A.Padding(B.EdgeInsets_16_0_16_0, new A.AppButton(_null, _null, t5, new A._ClientPdfViewState_build_closure9(_this), _null, _null), _null)], t3), B.WrapCrossAlignment_0), B.Clip_0, t6, _null, _null, _null, _null, _null, _null, _null, _null, _null, 1 / 0));
|
||||
}
|
||||
t4.push(A.Expanded$(_this._client_pdf$_isLoading || _this._client_pdf$_response == null ? new A.LoadingIndicator(_null, false, _null) : A.PdfPreview$(new A._ClientPdfViewState_build_closure10(_this), false, false, false, _null), 1));
|
||||
t4.push(A.Expanded$(_this._client_pdf$_isLoading || _this._client_pdf$_response == null ? new A.LoadingIndicator(_null, false, _null) : A.PdfPreview$(new A._ClientPdfViewState_build_closure10(_this), false, false, false, 800, _null), 1));
|
||||
return A.Scaffold$(t2, B.MaterialColor_Map_HFpTk_4288585374, A.Column$(t4, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), _null, _null, _null, _null, _null);
|
||||
}
|
||||
};
|
||||
@ -404882,11 +404891,11 @@
|
||||
t6 = _this._currentPage == _this._pageCount ? _null : new A.__PdfPreviewState_build_closure0(_this);
|
||||
t3.push(new A.Padding(B.EdgeInsets_0_0_0_16, A.Row$(A._setArrayType([new A.AppButton(_null, B._MdiIconData_Gjc1, t4, t5, 180, _null), new A.SizedBox(16, _null, _null, _null), new A.AppButton(_null, B._MdiIconData_Up30, t1, t6, 180, _null)], t2), B.CrossAxisAlignment_2, B.MainAxisAlignment_2, B.MainAxisSize_1, _null), _null));
|
||||
}
|
||||
t3.push(A.Expanded$(_this._invoice_edit_desktop$_response == null ? new A.SizedBox(_null, _null, _null, _null) : A.PdfPreview$(new A.__PdfPreviewState_build_closure1(_this), false, false, false, A._setArrayType([_this._currentPage - 1], type$.JSArray_legacy_int)), 1));
|
||||
t3.push(A.Expanded$(_this._invoice_edit_desktop$_response == null ? new A.SizedBox(_null, _null, _null, _null) : A.PdfPreview$(new A.__PdfPreviewState_build_closure1(_this), false, false, false, 800, A._setArrayType([_this._currentPage - 1], type$.JSArray_legacy_int)), 1));
|
||||
t1 = A._setArrayType([A.Column$(t3, B.CrossAxisAlignment_3, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1)], t2);
|
||||
if (_this._invoice_edit_desktop$_isLoading)
|
||||
t1.push(A.Column$(A._setArrayType([A.LinearProgressIndicator$(), A.Expanded$(A.Center$(A.CircularProgressIndicator$(_null, _null, _null, _null, _null, 4, _null, _null), _null, _null), 1)], t2), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1));
|
||||
return A.Container$(_null, A.Stack$(B.Alignment_0_m1, t1, B.Clip_1, B.StackFit_0, _null, _null), B.Clip_0, _null, _null, _null, _null, 1450, _null, _null, _null, _null, _null, _null);
|
||||
return A.Container$(_null, A.Stack$(B.Alignment_0_m1, t1, B.Clip_1, B.StackFit_0, _null, _null), B.Clip_0, _null, _null, _null, _null, 1200, _null, _null, _null, _null, _null, _null);
|
||||
}
|
||||
};
|
||||
A.__PdfPreviewState_loadPdf_closure.prototype = {
|
||||
@ -440331,6 +440340,7 @@
|
||||
};
|
||||
A.passwordCallback_closure0.prototype = {
|
||||
call$1(context) {
|
||||
A.print("## 3");
|
||||
return new A.PasswordConfirmation(this.callback, null, null);
|
||||
},
|
||||
$signature: 721
|
||||
@ -440347,10 +440357,13 @@
|
||||
t1 = false;
|
||||
t1 = t1 || !_this.user.hasPassword;
|
||||
t2 = _this.callback;
|
||||
if (t1)
|
||||
if (t1) {
|
||||
A.print("## 4");
|
||||
t2.call$2(null, idToken);
|
||||
else
|
||||
} else {
|
||||
A.print("## 5");
|
||||
A.showDialog(false, new A.passwordCallback__closure(t2, idToken), _this.context, null, true, type$.legacy_AlertDialog);
|
||||
}
|
||||
},
|
||||
$signature: 49
|
||||
};
|
||||
@ -447421,8 +447434,8 @@
|
||||
if (_this.preview != null)
|
||||
page = _this._zoomPreview$0();
|
||||
else {
|
||||
_this._widget.toString;
|
||||
page = A.Container$(_null, _this._createPreview$0(), B.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = _this._widget.maxPageWidth;
|
||||
page = A.Container$(_null, _this._createPreview$0(), B.Clip_0, _null, new A.BoxConstraints(0, t1, 0, 1 / 0), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
if (_this.updatePosition != null)
|
||||
A.Timer_Timer(B.Duration_0, new A.PdfPreviewCustomState_build_closure(_this));
|
||||
}
|
||||
@ -447643,9 +447656,9 @@
|
||||
call$1(context) {
|
||||
var _null = null,
|
||||
controller = context.dependOnInheritedWidgetOfExactType$1$0(type$.PdfPreviewController).data,
|
||||
t1 = this.$this;
|
||||
t1._widget.toString;
|
||||
return new A.PdfPreviewCustom(A._lateReadCheck(controller.__PdfPreviewData__pageFormat, "_pageFormat"), controller.buildDocument, _null, _null, _null, _null, t1._widget.pages, _null, _null, false, _null, _null, t1.previewWidget);
|
||||
t1 = this.$this,
|
||||
t2 = t1._widget.maxPageWidth;
|
||||
return new A.PdfPreviewCustom(A._lateReadCheck(controller.__PdfPreviewData__pageFormat, "_pageFormat"), controller.buildDocument, t2, _null, _null, _null, t1._widget.pages, _null, _null, false, _null, _null, t1.previewWidget);
|
||||
},
|
||||
$signature: 2703
|
||||
};
|
||||
@ -447816,13 +447829,13 @@
|
||||
};
|
||||
A.PdfPreviewRaster_raster_closure.prototype = {
|
||||
call$0() {
|
||||
var mq, t2,
|
||||
var mq, t2, t3,
|
||||
t1 = this.$this;
|
||||
t1._widget.toString;
|
||||
mq = t1._framework$_element.dependOnInheritedWidgetOfExactType$1$0(type$.MediaQuery).data;
|
||||
t2 = t1._widget;
|
||||
t2.toString;
|
||||
t1.PdfPreviewRaster_dpi = Math.min(mq.size._dx - 16, 1 / 0) * mq.devicePixelRatio / t2.pageFormat.width * 72;
|
||||
t3 = t2.maxPageWidth;
|
||||
t1.PdfPreviewRaster_dpi = Math.min(mq.size._dx - 16, t3) * mq.devicePixelRatio / t2.pageFormat.width * 72;
|
||||
t1._raster$0();
|
||||
},
|
||||
$signature: 0
|
||||
|
Loading…
Reference in New Issue
Block a user