mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 06:54:36 -04:00
Admin Portal - Profile
This commit is contained in:
parent
ad32472cd3
commit
0e649c7ead
12
public/main.profile.dart.js
vendored
12
public/main.profile.dart.js
vendored
@ -301981,12 +301981,11 @@
|
||||
return this.rebuild$1(new A.CompanyEntity_coreCompany_closure());
|
||||
},
|
||||
isModuleEnabled$1(entityType) {
|
||||
var t1, store, _this = this;
|
||||
var t1, _this = this;
|
||||
if (entityType === B.EntityType_purchaseOrder) {
|
||||
t1 = $.$get$navigatorKey();
|
||||
t1.toString;
|
||||
store = A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState);
|
||||
if (A._lateReadCheck(store.__Store__state, "_state").get$isHosted() && A.cleanApiUrl(A._lateReadCheck(store.__Store__state, "_state").authState.url) !== "https://staging.invoicing.co")
|
||||
if (A.cleanApiUrl(A._lateReadCheck(A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState).__Store__state, "_state").authState.url) !== "https://staging.invoicing.co")
|
||||
return false;
|
||||
}
|
||||
if ((entityType === B.EntityType_invoice || entityType === B.EntityType_payment) && (_this.enabledModules & 4096) === 0)
|
||||
@ -343029,10 +343028,13 @@
|
||||
return (t1 == null ? 0 : t1) > 0;
|
||||
},
|
||||
get$createdAtLimit() {
|
||||
var numberYearsActive,
|
||||
var t2, numberYearsActive,
|
||||
t1 = this.uiState.selectedCompanyIndex;
|
||||
t1 = this.userCompanyStates._list[t1].userCompany;
|
||||
numberYearsActive = t1.settings.numberYearsActive;
|
||||
t2 = t1.settings;
|
||||
numberYearsActive = t2 == null ? null : t2.numberYearsActive;
|
||||
if (numberYearsActive == null)
|
||||
numberYearsActive = 0;
|
||||
if (!t1.company.isLarge || numberYearsActive === 0)
|
||||
return 0;
|
||||
return B.JSNumber_methods.round$0(Date.now() / 1000) - numberYearsActive * 31536000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user