diff --git a/src/app/structure-list/components/card/card.component.ts b/src/app/structure-list/components/card/card.component.ts index e45a2779c788fea517e64dbf2c84a8dce8a4d0fe..c1571a72d4a03f4cc9e0e956b2f6c5c35378d485 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 6f0773b9bf2303348f58f259a37ee9d48054bce2..7f611ea8416ff4d2ce57fd660bc1fe2d525b43cc 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) {