Skip to content

Commit

Permalink
added icon, link, and tweaked some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pflopez committed Oct 21, 2024
1 parent f24642d commit ce6b66e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@
<td>{{ area.name }}</td>
<td>{{ area.totalStands }}</td>
<td>{{ area.treatedStands }}</td>
<td>{{ area.totalStands - area.treatedStands }}</td>
<td>
<div class="project-area-wrapper">
{{ area.totalStands - area.treatedStands }}
<a [routerLink]="['project-area', area.id]" (click)="cancel()">
<img src="assets/svg/icons/project-area-icon-blue.svg" />
</a>
</div>
</td>
</tr>
</table>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,12 @@
}


.project-area-wrapper {
display: flex;
align-items: center;
justify-content: space-between;


}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ import { TreatmentSummary } from '@types';
import { DialogData } from '../../../styleguide/dialogs/dialogs';
import { ErrorDialogComponent } from '../../../styleguide/dialogs/error-dialog/error-dialog.component';
import { PendingDialogComponent } from '../../../styleguide/dialogs/pending-dialog/pending-dialog.component';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';

@Component({
selector: 'app-review-treatment-plan-dialog',
standalone: true,
imports: [ModalComponent, MatSlideToggleModule, NgForOf, AsyncPipe, NgIf],
imports: [
ModalComponent,
MatSlideToggleModule,
NgForOf,
AsyncPipe,
NgIf,
RouterLink,
],
templateUrl: './review-treatment-plan-dialog.component.html',
styleUrl: './review-treatment-plan-dialog.component.scss',
})
Expand All @@ -35,6 +42,7 @@ export class ReviewTreatmentPlanDialogComponent {

projectAreas$: Observable<
{
id: number;
name: string;
totalStands: number;
treatedStands: number;
Expand All @@ -44,6 +52,7 @@ export class ReviewTreatmentPlanDialogComponent {
map((summary) =>
summary.project_areas.map((projectArea) => {
return {
id: projectArea.project_area_id,
name: projectArea.project_area_name,
totalStands: projectArea.total_stand_count,
treatedStands: projectArea.prescriptions
Expand Down
3 changes: 3 additions & 0 deletions src/interface/src/assets/svg/icons/project-area-icon-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/interface/src/styleguide/modal/modal.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@
&.xsmall {
width: 340px;
}

&.small {
width: 460px;
}

&.medium {
width: 520px;
}

&.large {
width: 730px;
width: 750px;
}

&.full {
width: 100%;
}
Expand Down

0 comments on commit ce6b66e

Please sign in to comment.