Skip to content

Commit

Permalink
#811 / #837 - Adding more @ifs :)
Browse files Browse the repository at this point in the history
  • Loading branch information
graphefruit committed Nov 23, 2024
1 parent c828a0a commit afc5b16
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/components/brews/brew-brewing/brew-brewing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,19 @@
<ion-icon name="download" slot="icon-only"></ion-icon>
</ion-button>

<ion-button (click)="chooseGraphToSetAsReference()" *ngIf="!brewBrewingGraphEl?.shallFlowProfileBeHidden()" fill="clear" slot="end" tappable>
<ion-icon name="analytics-outline" slot="icon-only"></ion-icon>
</ion-button>
<ion-button (click)="maximizeFlowGraph()" *ngIf="!brewBrewingGraphEl?.shallFlowProfileBeHidden()" fill="clear" slot="end" tappable>
<ion-icon name="expand-outline" slot="icon-only"></ion-icon>
</ion-button>
<ion-button (click)="maximizeControlButtons()" *ngIf="brewBrewingGraphEl?.shallFlowProfileBeHidden()" fill="clear" slot="end" tappable>
<ion-icon name="expand-outline" slot="icon-only"></ion-icon>
</ion-button>
@if(brewBrewingGraphEl?.shallFlowProfileBeHidden()) {
<ion-button (click)="maximizeControlButtons()" fill="clear" slot="end" tappable>
<ion-icon name="expand-outline" slot="icon-only"></ion-icon>
</ion-button>
} @else {
<ion-button (click)="chooseGraphToSetAsReference()" fill="clear" slot="end" tappable>
<ion-icon name="analytics-outline" slot="icon-only"></ion-icon>
</ion-button>
<ion-button (click)="maximizeFlowGraph()" fill="clear" slot="end" tappable>
<ion-icon name="expand-outline" slot="icon-only"></ion-icon>
</ion-button>
}
</ion-item>


<ion-item *ngIf="(settings | brewFieldVisiblePipe: [settings.manage_parameters.brew_temperature_time,
choosenPreparation.manage_parameters.brew_temperature_time,
choosenPreparation.use_custom_parameters])" [style.order]="(settings | brewFieldOrderPipe: [settings.brew_order.while.brew_temperature_time,
Expand Down

0 comments on commit afc5b16

Please sign in to comment.