File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 33 title ="Agents Overview "
44 buttontitle ="New Agent "
55 buttonlink ="/agents/new-agent "
6- [subbutton] ="true "
6+ [subbutton] ="this.agentRoleService.hasRole('create') "
77 > </ app-page-title >
88 < agents-table name ="agentsTable "> </ agents-table >
99</ app-table >
Original file line number Diff line number Diff line change 11import { Component } from '@angular/core' ;
22
3+ import { AgentRoleService } from '@services/roles/agents/agent-role.service' ;
34import { AutoTitleService } from '@services/shared/autotitle.service' ;
45
56@Component ( {
@@ -8,7 +9,10 @@ import { AutoTitleService } from '@services/shared/autotitle.service';
89 standalone : false
910} )
1011export class ShowAgentsComponent {
11- constructor ( private titleService : AutoTitleService ) {
12+ constructor (
13+ private titleService : AutoTitleService ,
14+ protected agentRoleService : AgentRoleService
15+ ) {
1216 this . titleService . set ( [ 'Agents Overview' ] ) ;
1317 }
1418}
Original file line number Diff line number Diff line change 11import { Component , Input } from '@angular/core' ;
2-
32import { Router } from '@angular/router' ;
43
54@Component ( {
6- selector : 'app-page-title' ,
7- templateUrl : './page-title.component.html' ,
8- standalone : false
5+ selector : 'app-page-title' ,
6+ templateUrl : './page-title.component.html' ,
7+ standalone : false
98} )
109export class PageTitleComponent {
1110 @Input ( ) title : string ;
You can’t perform that action at this time.
0 commit comments