Skip to content

Commit

Permalink
Emit logbook info on action
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Nov 18, 2024
1 parent f69e7d1 commit ec00c3a
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,54 @@
(cdkDropListDropped)="drop($event)" (matSortChange)="onSortChange()">
<ng-container matColumnDef="name">
<th mat-header-cell cdkDrag *matHeaderCellDef mat-sort-header>Title </th>
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
{{row.name}}
</div>
</td>
</ng-container>

<ng-container matColumnDef="description">
<th mat-header-cell cdkDrag *matHeaderCellDef mat-sort-header>Description </th>
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
{{row.description}}
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
{{row.description}}
</div>
</td>
</ng-container>

<ng-container matColumnDef="ownerGroup">
<th mat-header-cell cdkDrag *matHeaderCellDef mat-sort-header>ownerGroup </th>
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
{{row.ownerGroup}}
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
{{row.ownerGroup}}
</div>
</td>
</ng-container>

<ng-container matColumnDef="createdAt">
<th mat-header-cell cdkDrag *matHeaderCellDef mat-sort-header>Date </th>
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
{{row.createdAt | date}}
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
{{row.createdAt | date}}
</div>
</td>
</ng-container>

<ng-container matColumnDef="thumbnail">
<th mat-header-cell cdkDrag *matHeaderCellDef>Thumbnail </th>
<td mat-cell *matCellDef="let row">
<div class="scrollable-text">
<img [src]="getImage(row.thumbnail)"/>
<div class="scrollable-text">
<img [src]="getImage(row.thumbnail)" />
</div>
</td>
</ng-container>

<ng-container matColumnDef="actions">
<th mat-header-cell *matHeaderCellDef class="mat-fab-top-right"></th>
<td mat-cell *matCellDef="let row">
<actions-menu [logbook]="row" (logbookEdit)="editLogbook()" (logbookDelete)="deleteLogbook()"></actions-menu>
<actions-menu [logbook]="row" (logbookEdit)="editLogbook($event)"
(logbookDelete)="deleteLogbook($event)"></actions-menu>
</td>
</ng-container>

Expand All @@ -59,5 +60,5 @@

</section>

<mat-paginator [length]="totalItems" [pageSize]="10" [pageSizeOptions]="[10, 20, 50, 100]" (page)="onPageChange()"
<mat-paginator [length]="totalItems" [pageSize]="10" [pageSizeOptions]="[10, 20, 50, 100]" (page)="onPageChange()"
showFirstLastButtons></mat-paginator>

0 comments on commit ec00c3a

Please sign in to comment.