Table sorting preferences will be saved and reused based on the user’s selections
This commit is contained in:
@@ -29,6 +29,7 @@ function createContentApplication(overrides = {}) {
|
||||
const authSessionState = createAuthSessionState(contracts);
|
||||
const authSalesCommonState = createAuthSalesCommonState();
|
||||
const opportunitiesQueryState = createOpportunitiesQueryState();
|
||||
const tableSorting = createTableSorting({ environment });
|
||||
const opportunitiesTableState = createOpportunitiesTableState();
|
||||
const opportunitiesFilterState = createOpportunitiesFilterState(contracts);
|
||||
const preferencesState = createPreferencesState(contracts);
|
||||
@@ -137,7 +138,7 @@ function createContentApplication(overrides = {}) {
|
||||
environment
|
||||
});
|
||||
const svgPaths = createSvgPaths({ environment });
|
||||
const manageTime = createManageTime({ MODAL_ID: contracts.MODAL_ID, environment, searchableSelect, dates: createTimeDates(),
|
||||
const manageTime = createManageTime({ MODAL_ID: contracts.MODAL_ID, environment, tableSorting, searchableSelect, dates: createTimeDates(),
|
||||
notify: (...args) => opportunitiesLinks.showCopyConfirmation(...args),
|
||||
async requestDelete(id) {
|
||||
await srSessionPreparation.ensure();
|
||||
@@ -363,6 +364,7 @@ function createContentApplication(overrides = {}) {
|
||||
closeSrPopover: () => crmSrPopover.close()
|
||||
});
|
||||
const opportunitiesTable = createOpportunitiesTable({
|
||||
tableSorting,
|
||||
renderCalendar: (...args) => opportunityCalendar.render(...args),
|
||||
renderActivityFilters: () => activityFilters.render(),
|
||||
closeCrmSrPopover: (...args) => crmSrPopover.close(...args),
|
||||
@@ -607,6 +609,7 @@ function createContentApplication(overrides = {}) {
|
||||
queueProductsTableRender: () => productsContentJobs.queueProductsTableRender()
|
||||
});
|
||||
const rampProjectionView = createRampProjectionView({
|
||||
tableSorting,
|
||||
saveEstimates: product => workloadForecastUpdate.save(product),
|
||||
notify: (...args) => opportunitiesLinks.showCopyConfirmation(...args),
|
||||
MODAL_ID: contracts.MODAL_ID,
|
||||
@@ -630,6 +633,7 @@ function createContentApplication(overrides = {}) {
|
||||
});
|
||||
const customerTableSearch = createCustomerTableSearch({ environment });
|
||||
const installBaseView = createInstallBaseView({
|
||||
tableSorting,
|
||||
createSearch: (...args) => customerTableSearch.createSearch(...args),
|
||||
MODAL_ID: contracts.MODAL_ID,
|
||||
createCloseIcon: (...args) => contentIcons.createCloseIcon(...args),
|
||||
@@ -645,6 +649,7 @@ function createContentApplication(overrides = {}) {
|
||||
environment
|
||||
});
|
||||
const serviceRequestsView = createServiceRequestsView({
|
||||
tableSorting,
|
||||
createSearch: (...args) => customerTableSearch.createSearch(...args),
|
||||
MODAL_ID: contracts.MODAL_ID,
|
||||
createCloseIcon: (...args) => contentIcons.createCloseIcon(...args),
|
||||
@@ -690,6 +695,7 @@ function createContentApplication(overrides = {}) {
|
||||
environment
|
||||
});
|
||||
const ratecardView = createRatecardView({
|
||||
tableSorting,
|
||||
ACCOUNT_PLANS_MODAL_ID: contracts.ACCOUNT_PLANS_MODAL_ID,
|
||||
columns: ratecardModel.columns,
|
||||
formatValue: (...args) => ratecardModel.formatValue(...args),
|
||||
|
||||
Reference in New Issue
Block a user