Skip to content

Commit

Permalink
Merge pull request #263 from amosproj/refactor/xd-243
Browse files Browse the repository at this point in the history
fix: facility details "New Case" button position
  • Loading branch information
PatrickSchm1dt authored Jul 16, 2024
2 parents 5006322 + dd39bf4 commit fd61330
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class FacilityDetailFacade {

private randomEcoScoreFromString(str: string) {
// exception for the very legitimate waste disposal :D
if(str === 'totally legal waste disposal'){
if(str === 'Totally legal waste disposal'){
return 26;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<ix-content>
<div class="details-grid gap-x-6 gap-y-4 pb-32">
@if(this.pumpChart(); as pumpChart){
<div echarts [options]="pumpChart" [theme]="theme()" style="height: 25rem"></div>
<div echarts [options]="pumpChart" [theme]="theme()" style="height: 25rem"></div>
} @if(this.envChart(); as envChart){
<div echarts [options]="envChart" [theme]="theme()" style="height: 25rem"></div>
<div echarts [options]="envChart" [theme]="theme()" style="height: 25rem"></div>
} @if(this.metricsChart(); as metricsChart){
<div echarts [options]="metricsChart" [theme]="theme()" style="height: 25rem"></div>
<div echarts [options]="metricsChart" [theme]="theme()" style="height: 25rem"></div>
}

<ix-card variant="insight" class="h-full w-full p-4">
Expand Down Expand Up @@ -59,7 +59,13 @@
<ix-typography color="std">
{{ getCasesText(facility.cases.length) }}
</ix-typography>
<div class="flex flex-row justify-between w-full">
<div class="flex flex-row-reverse justify-between w-full h-full">
<div class="mt-auto p-2">
<ix-button [routerLink]="['/cases/create',{ facilityId: facility.id }]">
New Case
</ix-button>
</div>

@if (facility.cases.length > 0) {
<div>
<div class="flex flex-col pt-2">
Expand All @@ -76,12 +82,6 @@
}
</div>
}

<div class="mt-auto p-2">
<ix-button [routerLink]="['/cases/create',{ facilityId: facility.id }]">
New Case
</ix-button>
</div>
</div>
</ix-card-content>
</ix-card>
Expand Down

0 comments on commit fd61330

Please sign in to comment.