diff --git a/src/app/structure-list/components/card/card.component.ts b/src/app/structure-list/components/card/card.component.ts index 14f0f98c7def682061541bfe68fd8139e42d9207..3cbbb4004c817eb7484ba068bbf9c03f64587c34 100644 --- a/src/app/structure-list/components/card/card.component.ts +++ b/src/app/structure-list/components/card/card.component.ts @@ -72,6 +72,7 @@ export class CardComponent implements OnInit { id: this.structure._id, ...(queryString && { search: queryString }), }, + state: { isOrientation: this.isOrientation }, }); } else { this.selectedStructure.emit(this.structure); diff --git a/src/app/structure-list/components/structure-details/structure-details.component.html b/src/app/structure-list/components/structure-details/structure-details.component.html index 5eafe14948a0ceb6957bcaee1da83bcc4fb9148c..64c6c3dab51c4bf67f018ef156865b6accbdec38 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.html +++ b/src/app/structure-list/components/structure-details/structure-details.component.html @@ -24,7 +24,7 @@ <app-svg-icon [folder]="'ico'" [icon]="'cross'" [iconColor]="'grey-1'" (click)="close()" /> </section> - <section class="actions hide-on-print"> + <section *ngIf="showButtons" class="actions hide-on-print"> <div *ngIf="structure.hasUserWithAppointmentDN" class="clickableDiv" diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts index be4840a54aa821e6a8cf44f0f736b71b35c095d0..e0bee71ffa474091e5c4f15a66e599a512b921e6 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.ts +++ b/src/app/structure-list/components/structure-details/structure-details.component.ts @@ -57,6 +57,7 @@ export class StructureDetailsComponent implements OnInit { public structureAdmins: Owner[] = []; public membersWithJobWithPO: Owner[] = []; public fullScreen = false; + public showButtons = true; public Equipment = Equipment; public FreeWorkshop = FreeWorkshop; @@ -96,6 +97,7 @@ export class StructureDetailsComponent implements OnInit { } else if (!this.printMode) { this.structure = null; } + this.showButtons = !history.state.isOrientation; }); this.route.data.subscribe((data) => { if (data.fullScreen) {