Commits

rbt authored d266a128f8b
readded conditional close button
No tags

src/app/app.component.html

Modified
23 23 <div class="patientCity">
24 24 <h4>By/Hjemkommune</h4>
25 25 <p>{{dataCard.personalDataSection?.address?.city || '-'}}</p>
26 26 </div>
27 27
28 28 <div *ngIf="patientContextService.isAllowedToAccessData()" class="patientInterpretingAssistance">
29 29 <h4>Tolkebistand</h4>
30 30 <p>{{getTranslationRequirements()}}</p>
31 31 </div>
32 32
33 - <div class="more-container" >
33 + <div class="more-container" *ngIf="!(userContextService.userContext$ | async)?.sboLogin && !initializationFailed">
34 34 <button class="actions" type="button" mat-button (click)="closePatient()">
35 35 <span class="text">Luk patient</span>
36 36 <mat-icon svgIcon="ic-close"></mat-icon>
37 37 </button>
38 38 </div>
39 39 </div>
40 40
41 41 <div #sidebar class="sideBar">
42 42 <!-- If there is any cpr in the user context it was given by SBO, hence change is not allowed -->
43 43

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut