fix: content refetched after action (#1449)

This commit is contained in:
Ramveer
2022-06-23 18:19:20 +05:30
committed by GitHub
parent 53b84f3d4a
commit 3b4b9dfc97
6 changed files with 31 additions and 0 deletions
@@ -59,6 +59,7 @@ const routes: Routes = [
path: '', path: '',
component: CentersViewComponent, component: CentersViewComponent,
resolve: { resolve: {
centerViewData: CenterViewResolver,
centerDatatables: CenterDatatablesResolver centerDatatables: CenterDatatablesResolver
}, },
children: [ children: [
@@ -50,6 +50,7 @@ const routes: Routes = [
path: '', path: '',
component: FixedDepositAccountViewComponent, component: FixedDepositAccountViewComponent,
resolve: { resolve: {
fixedDepositsAccountData: FixedDepositsAccountViewResolver,
savingsDatatables: SavingsDatatablesResolver savingsDatatables: SavingsDatatablesResolver
}, },
children: [ children: [
+1
View File
@@ -61,6 +61,7 @@ const routes: Routes = [
path: '', path: '',
component: GroupsViewComponent, component: GroupsViewComponent,
resolve: { resolve: {
groupViewData: GroupViewResolver,
groupDatatables: GroupDatatablesResolver groupDatatables: GroupDatatablesResolver
}, },
children: [ children: [
+1
View File
@@ -69,6 +69,7 @@ const routes: Routes = [
path: '', path: '',
component: LoansViewComponent, component: LoansViewComponent,
resolve: { resolve: {
loanDetailsData: LoanDetailsResolver,
loanDatatables: LoanDatatablesResolver, loanDatatables: LoanDatatablesResolver,
}, },
children: [ children: [
@@ -135,6 +135,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewLoanProductComponent, component: ViewLoanProductComponent,
resolve: {
loanProduct: LoanProductResolver
}
}, },
{ {
path: 'edit', path: 'edit',
@@ -177,6 +180,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewSavingProductComponent, component: ViewSavingProductComponent,
resolve: {
savingProduct: SavingProductResolver
}
}, },
{ {
path: 'edit', path: 'edit',
@@ -219,6 +225,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewShareProductComponent, component: ViewShareProductComponent,
resolve: {
shareProduct: ShareProductResolver
},
}, },
{ {
path: 'edit', path: 'edit',
@@ -298,6 +307,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewTaxComponentComponent, component: ViewTaxComponentComponent,
resolve: {
taxComponent: TaxComponentResolver
},
}, },
{ {
path: 'edit', path: 'edit',
@@ -340,6 +352,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewTaxGroupComponent, component: ViewTaxGroupComponent,
resolve: {
taxGroup: TaxGroupResolver
},
}, },
{ {
path: 'edit', path: 'edit',
@@ -385,6 +400,7 @@ const routes: Routes = [
path: '', path: '',
component: ViewRecurringDepositProductComponent, component: ViewRecurringDepositProductComponent,
resolve: { resolve: {
recurringDepositProduct: RecurringDepositProductResolver,
recurringDepositProductsTemplate: RecurringDepositProductsTemplateResolver recurringDepositProductsTemplate: RecurringDepositProductsTemplateResolver
} }
}, },
@@ -430,6 +446,7 @@ const routes: Routes = [
path: '', path: '',
component: ViewFixedDepositProductComponent, component: ViewFixedDepositProductComponent,
resolve: { resolve: {
fixedDepositProduct: FixedDepositProductResolver,
fixedDepositProductsTemplate: FixedDepositProductsTemplateResolver fixedDepositProductsTemplate: FixedDepositProductsTemplateResolver
} }
}, },
@@ -474,6 +491,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewProductMixComponent, component: ViewProductMixComponent,
resolve: {
productMix: ViewProductMixResolver
},
}, },
{ {
path: 'edit', path: 'edit',
@@ -513,6 +533,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewFloatingRateComponent, component: ViewFloatingRateComponent,
resolve: {
floatingRate: FloatingRateResolver
},
}, },
{ {
path: 'edit', path: 'edit',
@@ -555,6 +578,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: ViewChargeComponent, component: ViewChargeComponent,
resolve: {
charge: ChargeResolver
},
}, },
{ {
path: 'edit', path: 'edit',
@@ -57,6 +57,7 @@ const routes: Routes = [
path: '', path: '',
component: SavingsAccountViewComponent, component: SavingsAccountViewComponent,
resolve: { resolve: {
savingsAccountData: SavingsAccountViewResolver,
savingsDatatables: SavingsDatatablesResolver savingsDatatables: SavingsDatatablesResolver
}, },
children: [ children: [