mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Admin Portal - Profile
This commit is contained in:
parent
3566a618b9
commit
88e695aa89
108
public/main.profile.dart.js
vendored
108
public/main.profile.dart.js
vendored
@ -462894,7 +462894,7 @@
|
||||
};
|
||||
A.SidebarFooter.prototype = {
|
||||
build$1(context) {
|
||||
var prefState, t2, t3, t4, account, t5, t6, t7, t8, t9, t10, t11, _null = null,
|
||||
var prefState, t2, t3, t4, account, t5, t6, t7, t8, t9, _null = null,
|
||||
_s10_ = "user_guide",
|
||||
store = A.StoreProvider_of(context, type$.legacy_AppState),
|
||||
t1 = store.__Store__state_A;
|
||||
@ -462914,55 +462914,53 @@
|
||||
t6 = A._setArrayType([], t6);
|
||||
if (A.cleanApiUrl(t1.authState.url) !== "https://demo.invoiceninja.com" && account.id.length !== 0)
|
||||
if (!t1.get$isHosted() && !account.isSchedulerRunning) {
|
||||
t8 = prefState.enableTooltips ? t2.get$error(t2) : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_59083_MaterialIcons_null_false, B.MaterialColor_Map_JNc9P_4294198070, _null), _null, new A.SidebarFooter_build_closure(context, t2, store), _null, _null, t8, _null));
|
||||
t3 = prefState.enableTooltips ? t2.get$error(t2) : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_59083_MaterialIcons_null_false, B.MaterialColor_Map_JNc9P_4294198070, _null), _null, new A.SidebarFooter_build_closure(context, t2, store), _null, _null, t3, _null));
|
||||
} else if (t1.get$credentials(t1).token.length === 0) {
|
||||
t8 = prefState.enableTooltips ? t2.get$error(t2) : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_59083_MaterialIcons_null_false, B.MaterialColor_Map_JNc9P_4294198070, _null), _null, new A.SidebarFooter_build_closure0(), _null, _null, t8, _null));
|
||||
t3 = prefState.enableTooltips ? t2.get$error(t2) : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_59083_MaterialIcons_null_false, B.MaterialColor_Map_JNc9P_4294198070, _null), _null, new A.SidebarFooter_build_closure0(), _null, _null, t3, _null));
|
||||
} else {
|
||||
if (!t1.get$isHosted()) {
|
||||
t8 = t3[t4].userCompany;
|
||||
t8 = !t8.account.disableAutoUpdate && t8.isAdmin && t1.get$isUpdateAvailable();
|
||||
t3 = t3[t4].userCompany;
|
||||
t3 = !t3.account.disableAutoUpdate && t3.isAdmin && t1.get$isUpdateAvailable();
|
||||
} else
|
||||
t8 = false;
|
||||
if (t8) {
|
||||
t8 = prefState.enableTooltips ? t2.get$updateAvailable() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_59083_MaterialIcons_null_false, A.Theme_of(context).colorScheme.secondary, _null), _null, new A.SidebarFooter_build_closure1(context), _null, _null, t8, _null));
|
||||
t3 = false;
|
||||
if (t3) {
|
||||
t3 = prefState.enableTooltips ? t2.get$updateAvailable() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_59083_MaterialIcons_null_false, A.Theme_of(context).colorScheme.secondary, _null), _null, new A.SidebarFooter_build_closure1(context), _null, _null, t3, _null));
|
||||
} else if (t1.get$isHosted() && A.getUnconnectedStripeAccount(t1) != null)
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_59083_MaterialIcons_null_false, B.MaterialColor_Map_JNZaB_4294940672, _null), _null, new A.SidebarFooter_build_closure2(context), _null, _null, _null, _null));
|
||||
else if (!t1.dismissedNativeWarning && !prefState.hideDesktopWarning)
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_58446_MaterialIcons_null_false, B.MaterialColor_Map_JNZaB_4294940672, _null), _null, new A.SidebarFooter_build_closure3(context, t2, store), _null, _null, _null, _null));
|
||||
}
|
||||
t8 = A.Icon$(B.IconData_58307_MaterialIcons_null_false, _null, _null);
|
||||
t9 = prefState.enableTooltips;
|
||||
t10 = t9 ? t2.get$contactUs() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t8, _null, new A.SidebarFooter_build_closure4(context), _null, _null, t10, _null));
|
||||
t10 = A.Icon$(B.IconData_58051_MaterialIcons_null_false, _null, _null);
|
||||
t8 = t9 ? t2.get$supportForum() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t10, _null, new A.SidebarFooter_build_closure5(), _null, _null, t8, _null));
|
||||
t8 = A.Icon$(B.IconData_58123_MaterialIcons_null_true, _null, _null);
|
||||
if (t9) {
|
||||
t3 = A.Icon$(B.IconData_58307_MaterialIcons_null_false, _null, _null);
|
||||
t4 = prefState.enableTooltips;
|
||||
t8 = t4 ? t2.get$contactUs() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t3, _null, new A.SidebarFooter_build_closure4(context), _null, _null, t8, _null));
|
||||
t8 = A.Icon$(B.IconData_58051_MaterialIcons_null_false, _null, _null);
|
||||
t3 = t4 ? t2.get$supportForum() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t8, _null, new A.SidebarFooter_build_closure5(), _null, _null, t3, _null));
|
||||
t3 = A.Icon$(B.IconData_58123_MaterialIcons_null_true, _null, _null);
|
||||
if (t4) {
|
||||
t2.toString;
|
||||
t10 = $.$get$LocalizationsProvider__localizedValues();
|
||||
t11 = J.$index$asx(t10.$index(0, t2.localeCode), _s10_);
|
||||
t10 = t11 == null ? J.$index$asx(t10.$index(0, "en"), _s10_) : t11;
|
||||
t8 = $.$get$LocalizationsProvider__localizedValues();
|
||||
t9 = J.$index$asx(t8.$index(0, t2.localeCode), _s10_);
|
||||
t8 = t9 == null ? J.$index$asx(t8.$index(0, "en"), _s10_) : t9;
|
||||
} else
|
||||
t10 = "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t8, _null, new A.SidebarFooter_build_closure6(t1), _null, _null, t10, _null));
|
||||
if (t3[t4].userCompany.isAdmin) {
|
||||
t3 = A.Icon$(B.IconData_58173_MaterialIcons_null_false, _null, _null);
|
||||
t4 = t9 ? t2.get$about() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t3, _null, new A.SidebarFooter_build_closure7(context), _null, _null, t4, _null));
|
||||
}
|
||||
t8 = "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t3, _null, new A.SidebarFooter_build_closure6(t1), _null, _null, t8, _null));
|
||||
t8 = A.Icon$(B.IconData_58173_MaterialIcons_null_false, _null, _null);
|
||||
t3 = t4 ? t2.get$about() : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t8, _null, new A.SidebarFooter_build_closure7(context), _null, _null, t3, _null));
|
||||
t3 = t1.lastError;
|
||||
if (t3.length !== 0) {
|
||||
t3 = A.Icon$(B.IconData_59083_MaterialIcons_null_false, B.MaterialColor_Map_JNc9P_4294198070, _null);
|
||||
t4 = t9 ? t2.get$error(t2) : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t3, _null, new A.SidebarFooter_build_closure8(context, t1), _null, _null, t4, _null));
|
||||
t8 = t4 ? t2.get$error(t2) : "";
|
||||
t6.push(A.IconButton$(_null, _null, _null, _null, t3, _null, new A.SidebarFooter_build_closure8(context, t1), _null, _null, t8, _null));
|
||||
}
|
||||
t6.push(new A.Spacer(_null));
|
||||
if (A.getLayout(context) !== B.AppLayout_mobile && prefState.menuSidebarMode === B.AppSidebarMode_collapse) {
|
||||
if (t9) {
|
||||
if (t4) {
|
||||
t2.toString;
|
||||
t1 = J.$index$asx($.$get$LocalizationsProvider__localizedValues().$index(0, t2.localeCode), "hide_menu");
|
||||
if (t1 == null)
|
||||
@ -463240,7 +463238,7 @@
|
||||
};
|
||||
A._showAbout_closure.prototype = {
|
||||
call$1(context) {
|
||||
var t5, t6, t7, t8, t9, t10, t11, _this = this, _null = null,
|
||||
var t5, t6, t7, t8, t9, t10, t11, t12, _this = this, _null = null,
|
||||
_s10_ = "review_app",
|
||||
t1 = _this.localization,
|
||||
t2 = $.$get$LocalizationsProvider__localizedValues(),
|
||||
@ -463265,26 +463263,30 @@
|
||||
t10.push(new A.Padding(B.EdgeInsets_0_4_0_0, new A.AppButton(_null, B._MdiIconData_7T1, t8.toUpperCase(), new A._showAbout__closure3(context, t1), _null, _null), _null));
|
||||
}
|
||||
t10.push(new A.AppButton(B.MaterialColor_Map_JN94k_4278238420, B._MdiIconData_egL0, t1.get$releaseNotes().toUpperCase(), new A._showAbout__closure4(), _null, _null));
|
||||
t6.get$isHosted();
|
||||
t8 = J.$index$asx(t2.$index(0, t3), "health_check");
|
||||
if (t8 == null)
|
||||
t8 = "";
|
||||
t8 = A._setArrayType([new A.AppButton(B.MaterialColor_Map_JNEaM_4283215696, B._MdiIconData_2Nv, t8.toUpperCase(), new A._showAbout__closure5(context), _null, _null)], t7);
|
||||
t11 = t9[t5].userCompany.account;
|
||||
if (!t11.disableAutoUpdate)
|
||||
t11 = !t11.isDocker || t6.get$isUpdateAvailable();
|
||||
else
|
||||
t11 = false;
|
||||
if (t11) {
|
||||
if (t6.get$isUpdateAvailable()) {
|
||||
t1 = J.$index$asx(t2.$index(0, t3), "update_app");
|
||||
if (t1 == null)
|
||||
t1 = "";
|
||||
} else
|
||||
t1 = t1.get$forceUpdate();
|
||||
t8.push(new A.AppButton(B.MaterialColor_Map_JNZaB_4294940672, B._MdiIconData_egL1, t1.toUpperCase(), new A._showAbout__closure6(context), _null, _null));
|
||||
if (t9[t5].userCompany.isAdmin) {
|
||||
t8 = A._setArrayType([], t7);
|
||||
t6.get$isHosted();
|
||||
t11 = J.$index$asx(t2.$index(0, t3), "health_check");
|
||||
if (t11 == null)
|
||||
t11 = "";
|
||||
t11 = A._setArrayType([new A.AppButton(B.MaterialColor_Map_JNEaM_4283215696, B._MdiIconData_2Nv, t11.toUpperCase(), new A._showAbout__closure5(context), _null, _null)], t7);
|
||||
t12 = t9[t5].userCompany.account;
|
||||
if (!t12.disableAutoUpdate)
|
||||
t12 = !t12.isDocker || t6.get$isUpdateAvailable();
|
||||
else
|
||||
t12 = false;
|
||||
if (t12) {
|
||||
if (t6.get$isUpdateAvailable()) {
|
||||
t1 = J.$index$asx(t2.$index(0, t3), "update_app");
|
||||
if (t1 == null)
|
||||
t1 = "";
|
||||
} else
|
||||
t1 = t1.get$forceUpdate();
|
||||
t11.push(new A.AppButton(B.MaterialColor_Map_JNZaB_4294940672, B._MdiIconData_egL1, t1.toUpperCase(), new A._showAbout__closure6(context), _null, _null));
|
||||
}
|
||||
B.JSArray_methods.addAll$1(t8, t11);
|
||||
B.JSArray_methods.addAll$1(t10, t8);
|
||||
}
|
||||
B.JSArray_methods.addAll$1(t10, t8);
|
||||
t1 = t9[t5].userCompany.company;
|
||||
t1.toString;
|
||||
if (B.JSInt_methods._tdivFast$1(A.Duration$(0, 0, 0, Date.now() - A.convertTimestampToDate(t1.createdAt)._value, 0, 0)._duration, 864e8) > 30) {
|
||||
|
Loading…
Reference in New Issue
Block a user