Skip to content
Permalink
Browse files
added edit routing
  • Loading branch information
pembemiriam committed Aug 30, 2018
1 parent 66ae788 commit f21b33b44026365faf94e934aad932cf958d6a20
Showing 3 changed files with 4 additions and 6 deletions.
@@ -33,7 +33,7 @@
<td style="text-align: center; vertical-align: middle;">{{data.accountNo}}</td>
<td style="text-align: center; vertical-align: middle;">{{data.id}}</td>
<td style="text-align: center; vertical-align: middle;">{{data.status.value}}</td>
<td style="text-align: center; vertical-align: middle;">{{data.officeName}}</td>
<td style="text-align: center; vertical-align: middle;"><a (click)="rowSelect($event)">{{data.officeName}}</a></td>
</tr>

</table>
@@ -80,7 +80,7 @@ export class CenterComponent implements OnInit {
}

rowSelect(row: Employee): void {
this.router.navigate(['detail', row.identifier], { relativeTo: this.route });
this.router.navigate(['/detail']);
}

fetchEmployees(fetchRequest?: FetchRequest) {
@@ -36,11 +36,9 @@ export const CenterRoutes: Routes = [
data: {title: 'Create Employee', hasPermission: {id: 'office_employees', accessLevel: 'CHANGE'}}
},
{
path: 'detail/:id/edit',
path: 'detail',
component: EditCenterFormComponent,
canActivate: [CenterExistsGuard],
resolve: {user: UserResolver},
data: {title: 'Edit Employee', hasPermission: {id: 'office_employees', accessLevel: 'CHANGE'}}

},
{
path: 'detail/:id',

0 comments on commit f21b33b

Please sign in to comment.