Commit 81851d45 authored by Guillaume Heurtier's avatar Guillaume Heurtier

FEAT #13587 TIME 3:00 fix duplicate action buttons in left panel in admin

parent ab7a0467
......@@ -123,8 +123,8 @@ export class ContactsGroupAdministrationComponent implements OnInit {
ngOnInit(): void {
this.loading = true;
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
this.route.params.subscribe(params => {
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
if (typeof params['id'] == "undefined") {
this.headerService.setHeader(this.lang.contactGroupCreation);
......
......@@ -62,9 +62,9 @@ export class ContactsPageAdministrationComponent implements OnInit {
this.loading = true;
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
this.route.params.subscribe((params: any) => {
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
if (typeof params['id'] == "undefined") {
this.headerService.setHeader(this.lang.contactCreation);
......
<mat-sidenav-container autosize class="maarch-container">
<ng-template #adminMenuTemplate>
<mat-nav-list>
<h3 mat-subheader>{{lang.actions}}</h3>
<h3 mat-subheader *ngIf="!creationMode">{{lang.actions}}</h3>
<a mat-list-item (click)="createScript()" *ngIf="!creationMode && !loading && !notification.scriptcreated">
<mat-icon color="primary" mat-list-icon class="fa fa-terminal"></mat-icon>
<p mat-line>
......@@ -212,4 +212,4 @@
</div>
</div>
</mat-sidenav-content>
</mat-sidenav-container>
\ No newline at end of file
</mat-sidenav-container>
......@@ -38,9 +38,9 @@ export class NotificationAdministrationComponent implements OnInit {
ngOnInit(): void {
this.loading = true;
this.route.params.subscribe((params: any) => {
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
this.route.params.subscribe((params: any) => {
if (typeof params['identifier'] == "undefined") {
this.headerService.setHeader(this.lang.notificationCreation);
......
......@@ -62,11 +62,9 @@ export class TemplateAdministrationComponent implements OnInit {
ngOnInit(): void {
this.loading = true;
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
this.route.params.subscribe(params => {
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
if (typeof params['id'] == "undefined") {
this.headerService.setHeader(this.lang.templateCreation);
......
......@@ -134,9 +134,9 @@ export class UserAdministrationComponent implements OnInit {
this.loading = true;
this.route.params.subscribe((params: any) => {
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
this.headerService.injectInSideBarLeft(this.adminMenuTemplate, this.viewContainerRef, 'adminMenu');
this.route.params.subscribe((params: any) => {
if (typeof params['id'] == "undefined") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment