feat: add edit standing instructions details (#1139)

Fixes: #1138
This commit is contained in:
Muskan Khedia
2020-07-19 10:24:52 +05:30
committed by GitHub
parent 521c61d1f3
commit 3bc8e41a46
11 changed files with 404 additions and 4 deletions
@@ -7,9 +7,11 @@ import { extract } from '../core/i18n/i18n.service';
/** Custom Components */
import { ViewStandingInstructionsComponent } from './view-standing-instructions/view-standing-instructions.component';
import { EditStandingInstructionsComponent } from './edit-standing-instructions/edit-standing-instructions.component';
/** Custom Resolvers */
import { ViewStandingInstructionsResolver } from './common-resolvers/view-standing-instructions.resolver';
import { StandingInstructionsDataAndTemplateResolver } from './common-resolvers/standing-instructions-data-and-template.resolver';
/** Loans Route. */
const routes: Routes = [
@@ -28,6 +30,14 @@ const routes: Routes = [
standingInstructionsData: ViewStandingInstructionsResolver,
},
},
{
path: 'edit',
data: { title: extract('Edit Standing Instructions'), breadcrumb: 'edit', routeParamBreadcrumb: false },
component: EditStandingInstructionsComponent,
resolve: {
standingInstructionsDataAndTemplate: StandingInstructionsDataAndTemplateResolver,
},
}
]
}]
}
@@ -38,6 +48,7 @@ const routes: Routes = [
declarations: [],
providers: [
ViewStandingInstructionsResolver,
StandingInstructionsDataAndTemplateResolver
]
})