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
ab23e4b991
commit
70af30005b
84
public/main.profile.dart.js
vendored
84
public/main.profile.dart.js
vendored
@ -129924,9 +129924,6 @@
|
||||
}
|
||||
return toCurrency.exchangeRate * (1 / fromCurrency.exchangeRate);
|
||||
},
|
||||
supportsBankAccounts() {
|
||||
return true;
|
||||
},
|
||||
supportsInAppPurchase() {
|
||||
var t1 = $.$get$navigatorKey();
|
||||
t1.toString;
|
||||
@ -393692,10 +393689,7 @@
|
||||
t1 === $ && A.throwUnnamedLateFieldNI();
|
||||
t1[0].call$1(new A.LoadRecurringExpensesSuccess(data));
|
||||
this.action.toString;
|
||||
if (A.supportsBankAccounts())
|
||||
t1[0].call$1(new A.LoadTransactions());
|
||||
else
|
||||
t1[0].call$1(new A.PersistData());
|
||||
t1[0].call$1(new A.LoadTransactions());
|
||||
},
|
||||
$signature: 715
|
||||
};
|
||||
@ -424912,8 +424906,7 @@
|
||||
t1 = t4.get$expenses();
|
||||
t9.push(A.DrawerTile$(company, B.EntityType_expense, t6, t4.get$newExpense(), _null, _null, t1));
|
||||
t9.push(A.DrawerTile$(company, B.EntityType_recurringExpense, A.getEntityIcon(B.EntityType_recurringExpense), _null, _null, _null, t4.get$recurringExpenses()));
|
||||
if (A.supportsBankAccounts())
|
||||
t9.push(A.DrawerTile$(company, B.EntityType_transaction, A.getEntityIcon(B.EntityType_transaction), _null, _null, _null, t4.get$transactions()));
|
||||
t9.push(A.DrawerTile$(company, B.EntityType_transaction, A.getEntityIcon(B.EntityType_transaction), _null, _null, _null, t4.get$transactions()));
|
||||
if (A.isApple())
|
||||
t1 = !t2.get$isHosted() || t10[t11].userCompany.account.plan === "enterprise" || t10[t11].userCompany.account.plan === "pro";
|
||||
else
|
||||
@ -473249,7 +473242,7 @@
|
||||
t2 = J.$index$asx(t9.$index(0, t10), _s18_);
|
||||
if (t2 == null)
|
||||
t2 = J.$index$asx(t9.$index(0, _s2_), _s18_);
|
||||
t13.push(A.OutlinedButton$(A.Text$(t2.toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A._InvoiceDesignState_build_closure7(store, state), _null));
|
||||
B.JSArray_methods.addAll$1(t13, A._setArrayType([A.OutlinedButton$(A.Text$(t2.toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A._InvoiceDesignState_build_closure7(store, state), _null), new A.SizedBox(_null, 16, _null, _null)], t12));
|
||||
}
|
||||
t2 = J.$index$asx(t9.$index(0, t10), "page_layout");
|
||||
if (t2 == null)
|
||||
@ -475576,7 +475569,7 @@
|
||||
t7.push(new A.SettingsListTile("client_portal", _this._widget.viewModel, _null));
|
||||
t7.push(new A.SettingsListTile("email_settings", _this._widget.viewModel, _null));
|
||||
t7.push(new A.SettingsListTile("templates_and_reminders", _this._widget.viewModel, _null));
|
||||
if (showAll && A.supportsBankAccounts())
|
||||
if (showAll)
|
||||
t7.push(new A.SettingsListTile("bank_accounts", _this._widget.viewModel, _null));
|
||||
if (showAll)
|
||||
t7.push(new A.SettingsListTile("group_settings", _this._widget.viewModel, _null));
|
||||
@ -475614,7 +475607,7 @@
|
||||
};
|
||||
A.SettingsSearch.prototype = {
|
||||
build$1(context) {
|
||||
var t3, company, t4, t5, t6, i, t7, t8, _i, field, t9, t10, _null = null,
|
||||
var t3, company, t4, map, t5, i, t6, t7, _i, field, t8, t9, _null = null,
|
||||
_s8_ = "company1",
|
||||
_s8_0 = "company2",
|
||||
_s8_1 = "company3",
|
||||
@ -475625,60 +475618,33 @@
|
||||
t3 = t2.userCompanyStates;
|
||||
t2 = t2.uiState.selectedCompanyIndex;
|
||||
company = t3._list[t2].userCompany.company;
|
||||
t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_List_legacy_List_legacy_String);
|
||||
t3 = type$.JSArray_legacy_String;
|
||||
t4 = A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone", "size", "industry"], t3);
|
||||
t2 = type$.JSArray_legacy_String;
|
||||
t3 = A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone", "size", "industry"], t2);
|
||||
if (company.getCustomFieldLabel$1(_s8_).length !== 0)
|
||||
t4.push(company.getCustomFieldLabel$1(_s8_));
|
||||
t3.push(company.getCustomFieldLabel$1(_s8_));
|
||||
if (company.getCustomFieldLabel$1(_s8_0).length !== 0)
|
||||
t4.push(company.getCustomFieldLabel$1(_s8_0));
|
||||
t3.push(company.getCustomFieldLabel$1(_s8_0));
|
||||
if (company.getCustomFieldLabel$1(_s8_1).length !== 0)
|
||||
t4.push(company.getCustomFieldLabel$1(_s8_1));
|
||||
t3.push(company.getCustomFieldLabel$1(_s8_1));
|
||||
if (company.getCustomFieldLabel$1(_s8_2).length !== 0)
|
||||
t4.push(company.getCustomFieldLabel$1(_s8_2));
|
||||
t5 = type$.JSArray_legacy_List_legacy_String;
|
||||
t2.$indexSet(0, "company_details", A._setArrayType([t4, A._setArrayType(["address", "postal_code", "country"], t3), A._setArrayType(["logo"], t3), A._setArrayType(["defaults", "payment_terms", "invoice_terms", "invoice_footer", "quote_terms", "quote_footer", "credit_terms", "credit_footer", "use_quote_terms"], t3), A._setArrayType(["default_documents"], t3)], t5));
|
||||
t2.$indexSet(0, "user_details", A._setArrayType([A._setArrayType(["first_name", "last_name", "email", "phone", "password", "accent_color", "connect_google", "connect_gmail", "enable_two_factor"], t3), A._setArrayType(["notifications"], t3)], t5));
|
||||
t2.$indexSet(0, "localization", A._setArrayType([A._setArrayType(["currency", "language", "timezone", "date_format", "military_time", "decimal_comma", "first_month_of_the_year"], t3), A._setArrayType(["custom_labels"], t3)], t5));
|
||||
t2.$indexSet(0, "payment_settings", A._setArrayType([A._setArrayType(["company_gateways", "auto_bill", "auto_bill_on", "payment_type", "online_payment_email", "manual_payment_email", "use_available_credits", "enable_applying_payments_later", "allow_over_payment", "allow_under_payment"], t3)], t5));
|
||||
t2.$indexSet(0, "tax_settings", A._setArrayType([A._setArrayType(["tax_settings"], t3)], t5));
|
||||
t2.$indexSet(0, "tax_settings_rates", A._setArrayType([A._setArrayType(["tax_rates", "inclusive_taxes"], t3)], t5));
|
||||
t2.$indexSet(0, "product_settings", A._setArrayType([A._setArrayType(["track_inventory", "stock_notifications", "show_product_discount", "show_product_cost", "fill_products", "update_products", "convert_products"], t3)], t5));
|
||||
t2.$indexSet(0, "task_settings", A._setArrayType([A._setArrayType(["task_settings", "auto_start_tasks", "show_tasks_table", "client_portal"], t3)], t5));
|
||||
t2.$indexSet(0, "task_status", A._setArrayType([A._setArrayType(["task_statuses"], t3)], t5));
|
||||
t2.$indexSet(0, "expense_settings", A._setArrayType([A._setArrayType(["should_be_invoiced", "mark_paid", "inclusive_taxes"], t3)], t5));
|
||||
t2.$indexSet(0, "expense_category", A._setArrayType([A._setArrayType(["expense_categories"], t3)], t5));
|
||||
t2.$indexSet(0, "workflow_settings", A._setArrayType([A._setArrayType(["auto_email_invoice", "stop_on_unpaid", "auto_archive_paid_invoices", "auto_archive_cancelled_invoices", "lock_invoices"], t3), A._setArrayType(["auto_convert"], t3)], t5));
|
||||
t2.$indexSet(0, "import_export", A._setArrayType([A._setArrayType(["import", "export"], t3)], t5));
|
||||
t2.$indexSet(0, "device_settings", A._setArrayType([A._setArrayType(["long_press_multiselect", "biometric_authentication", "enable_flexible_search", "enable_tooltips", "show_pdf_preview", "refresh_data"], t3), A._setArrayType(["dark_mode", "custom_colors"], t3)], t5));
|
||||
t2.$indexSet(0, "account_management", A._setArrayType([A._setArrayType(["activate_company", "enable_markdown", "include_drafts", "include_deleted", "api_tokens", "api_webhooks", "purge_data", "delete_company"], t3), A._setArrayType(["enabled_modules"], t3), A._setArrayType(["google_analytics"], t3), A._setArrayType(["password_timeout", "web_session_timeout"], t3)], t5));
|
||||
t2.$indexSet(0, "invoice_design", A._setArrayType([A._setArrayType(["invoice_design", "quote_design", "page_size", "font_size", "primary_font", "secondary_font", "primary_color", "secondary_color", "empty_columns"], t3)], t5));
|
||||
t2.$indexSet(0, "custom_designs", A._setArrayType([A._setArrayType(["custom_designs"], t3)], t5));
|
||||
t2.$indexSet(0, "custom_fields", A._setArrayType([A._setArrayType(["custom_fields"], t3)], t5));
|
||||
t2.$indexSet(0, "generated_numbers", A._setArrayType([A._setArrayType(["number_padding", "number_counter", "recurring_prefix", "reset_counter", "invoice_number", "client_number", "credit_number", "payment_number"], t3)], t5));
|
||||
t2.$indexSet(0, "client_portal", A._setArrayType([A._setArrayType(["client_portal", "dashboard", "portal_mode", "subdomain", "domain", "client_document_upload", "vendor_document_upload"], t3), A._setArrayType(["client_registration"], t3), A._setArrayType(["enable_portal_password", "show_accept_invoice_terms", "show_accept_quote_terms", "require_invoice_signature", "require_quote_signature"], t3), A._setArrayType(["messages"], t3), A._setArrayType(["custom_css"], t3)], t5));
|
||||
t2.$indexSet(0, "email_settings", A._setArrayType([A._setArrayType(["send_from_gmail", "email_design", "from_name", "reply_to_email", "reply_to_name", "bcc_email", "attach_pdf", "attach_documents", "attach_ubl", "email_signature"], t3)], t5));
|
||||
t2.$indexSet(0, "templates_and_reminders", A._setArrayType([A._setArrayType(["template", "send_reminders", "late_fees"], t3)], t5));
|
||||
if (A.supportsBankAccounts())
|
||||
t2.$indexSet(0, "bank_accounts", A._setArrayType([A._setArrayType(["bank_accounts"], t3)], t5));
|
||||
t2.$indexSet(0, "group_settings", A._setArrayType([A._setArrayType(["groups"], t3)], t5));
|
||||
t2.$indexSet(0, "subscriptions", A._setArrayType([A._setArrayType(["subscriptions"], t3)], t5));
|
||||
t2.$indexSet(0, "user_management", A._setArrayType([A._setArrayType(["users"], t3)], t5));
|
||||
t3 = A._setArrayType([], type$.JSArray_legacy_Widget);
|
||||
for (t4 = A.LinkedHashMapKeyIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = this.filter; t4.moveNext$0();) {
|
||||
t6 = t4.__js_helper$_current;
|
||||
for (i = 0; i < t2.$index(0, t6).length; ++i)
|
||||
for (t7 = t2.$index(0, t6)[i], t8 = t7.length, _i = 0; _i < t7.length; t7.length === t8 || (0, A.throwConcurrentModificationError)(t7), ++_i) {
|
||||
field = t7[_i];
|
||||
t9 = t1.lookup$1(field).toLowerCase();
|
||||
t10 = t5.toLowerCase();
|
||||
if (A.stringContainsUnchecked(t9, t10, 0)) {
|
||||
t9 = t1.lookup$1(field);
|
||||
t3.push(A.ListTile$(false, _null, _null, _null, true, _null, _null, false, _null, new A.Padding(B.EdgeInsets_6_10_0_0, new A.Icon(A.getSettingIcon(t6), 22, _null, _null), _null), _null, new A.SettingsSearch_build_closure(this, context, t6, i), false, _null, _null, new A.Text(t1.lookup$1(t6), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A.Text(t9, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, _null));
|
||||
t3.push(company.getCustomFieldLabel$1(_s8_2));
|
||||
t4 = type$.JSArray_legacy_List_legacy_String;
|
||||
map = A.LinkedHashMap_LinkedHashMap$_literal(["company_details", A._setArrayType([t3, A._setArrayType(["address", "postal_code", "country"], t2), A._setArrayType(["logo"], t2), A._setArrayType(["defaults", "payment_terms", "invoice_terms", "invoice_footer", "quote_terms", "quote_footer", "credit_terms", "credit_footer", "use_quote_terms"], t2), A._setArrayType(["default_documents"], t2)], t4), "user_details", A._setArrayType([A._setArrayType(["first_name", "last_name", "email", "phone", "password", "accent_color", "connect_google", "connect_gmail", "enable_two_factor"], t2), A._setArrayType(["notifications"], t2)], t4), "localization", A._setArrayType([A._setArrayType(["currency", "language", "timezone", "date_format", "military_time", "decimal_comma", "first_month_of_the_year"], t2), A._setArrayType(["custom_labels"], t2)], t4), "payment_settings", A._setArrayType([A._setArrayType(["company_gateways", "auto_bill", "auto_bill_on", "payment_type", "online_payment_email", "manual_payment_email", "use_available_credits", "enable_applying_payments_later", "allow_over_payment", "allow_under_payment"], t2)], t4), "tax_settings", A._setArrayType([A._setArrayType(["tax_settings"], t2)], t4), "tax_settings_rates", A._setArrayType([A._setArrayType(["tax_rates", "inclusive_taxes"], t2)], t4), "product_settings", A._setArrayType([A._setArrayType(["track_inventory", "stock_notifications", "show_product_discount", "show_product_cost", "fill_products", "update_products", "convert_products"], t2)], t4), "task_settings", A._setArrayType([A._setArrayType(["task_settings", "auto_start_tasks", "show_tasks_table", "client_portal"], t2)], t4), "task_status", A._setArrayType([A._setArrayType(["task_statuses"], t2)], t4), "expense_settings", A._setArrayType([A._setArrayType(["should_be_invoiced", "mark_paid", "inclusive_taxes"], t2)], t4), "expense_category", A._setArrayType([A._setArrayType(["expense_categories"], t2)], t4), "workflow_settings", A._setArrayType([A._setArrayType(["auto_email_invoice", "stop_on_unpaid", "auto_archive_paid_invoices", "auto_archive_cancelled_invoices", "lock_invoices"], t2), A._setArrayType(["auto_convert"], t2)], t4), "import_export", A._setArrayType([A._setArrayType(["import", "export"], t2)], t4), "device_settings", A._setArrayType([A._setArrayType(["long_press_multiselect", "biometric_authentication", "enable_flexible_search", "enable_tooltips", "show_pdf_preview", "refresh_data"], t2), A._setArrayType(["dark_mode", "custom_colors"], t2)], t4), "account_management", A._setArrayType([A._setArrayType(["activate_company", "enable_markdown", "include_drafts", "include_deleted", "api_tokens", "api_webhooks", "purge_data", "delete_company"], t2), A._setArrayType(["enabled_modules"], t2), A._setArrayType(["google_analytics"], t2), A._setArrayType(["password_timeout", "web_session_timeout"], t2)], t4), "invoice_design", A._setArrayType([A._setArrayType(["invoice_design", "quote_design", "page_size", "font_size", "primary_font", "secondary_font", "primary_color", "secondary_color", "empty_columns"], t2)], t4), "custom_designs", A._setArrayType([A._setArrayType(["custom_designs"], t2)], t4), "custom_fields", A._setArrayType([A._setArrayType(["custom_fields"], t2)], t4), "generated_numbers", A._setArrayType([A._setArrayType(["number_padding", "number_counter", "recurring_prefix", "reset_counter", "invoice_number", "client_number", "credit_number", "payment_number"], t2)], t4), "client_portal", A._setArrayType([A._setArrayType(["client_portal", "dashboard", "portal_mode", "subdomain", "domain", "client_document_upload", "vendor_document_upload"], t2), A._setArrayType(["client_registration"], t2), A._setArrayType(["enable_portal_password", "show_accept_invoice_terms", "show_accept_quote_terms", "require_invoice_signature", "require_quote_signature"], t2), A._setArrayType(["messages"], t2), A._setArrayType(["custom_css"], t2)], t4), "email_settings", A._setArrayType([A._setArrayType(["send_from_gmail", "email_design", "from_name", "reply_to_email", "reply_to_name", "bcc_email", "attach_pdf", "attach_documents", "attach_ubl", "email_signature"], t2)], t4), "templates_and_reminders", A._setArrayType([A._setArrayType(["template", "send_reminders", "late_fees"], t2)], t4), "bank_accounts", A._setArrayType([A._setArrayType(["bank_accounts"], t2)], t4), "group_settings", A._setArrayType([A._setArrayType(["groups"], t2)], t4), "subscriptions", A._setArrayType([A._setArrayType(["subscriptions"], t2)], t4), "user_management", A._setArrayType([A._setArrayType(["users"], t2)], t4)], type$.legacy_String, type$.legacy_List_legacy_List_legacy_String);
|
||||
t4 = A._setArrayType([], type$.JSArray_legacy_Widget);
|
||||
for (t2 = A.LinkedHashMapKeyIterator$(map, map._modifications, A._instanceType(map)._precomputed1), t3 = this.filter; t2.moveNext$0();) {
|
||||
t5 = t2.__js_helper$_current;
|
||||
for (i = 0; i < map.$index(0, t5).length; ++i)
|
||||
for (t6 = map.$index(0, t5)[i], t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
|
||||
field = t6[_i];
|
||||
t8 = t1.lookup$1(field).toLowerCase();
|
||||
t9 = t3.toLowerCase();
|
||||
if (A.stringContainsUnchecked(t8, t9, 0)) {
|
||||
t8 = t1.lookup$1(field);
|
||||
t4.push(A.ListTile$(false, _null, _null, _null, true, _null, _null, false, _null, new A.Padding(B.EdgeInsets_6_10_0_0, new A.Icon(A.getSettingIcon(t5), 22, _null, _null), _null), _null, new A.SettingsSearch_build_closure(this, context, t5, i), false, _null, _null, new A.Text(t1.lookup$1(t5), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A.Text(t8, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, _null));
|
||||
}
|
||||
}
|
||||
}
|
||||
return new A.ScrollableListView(t3, _null, _null, _null, false, _null);
|
||||
return new A.ScrollableListView(t4, _null, _null, _null, false, _null);
|
||||
}
|
||||
};
|
||||
A.SettingsSearch_build_closure.prototype = {
|
||||
|
Loading…
Reference in New Issue
Block a user