main #6

Merged
jank merged 8 commits from main into prod 2025-01-21 10:26:37 +00:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 50fa637a35 - Show all commits

View file

@ -15,7 +15,6 @@
<th mat-header-cell *matHeaderCellDef> ID </th> <th mat-header-cell *matHeaderCellDef> ID </th>
<td mat-cell *matCellDef="let element"> <td mat-cell *matCellDef="let element">
{{element.id}} {{element.id}}
<button mat-flat-button class="my-3" (click)="copyLink(element.id)">Copy short url</button>
</td> </td>
</ng-container> </ng-container>
@ -32,9 +31,11 @@
</ng-container> </ng-container>
<!-- Symbol Column --> <!-- Symbol Column -->
<ng-container matColumnDef="symbol"> <ng-container matColumnDef="shortLink">
<th mat-header-cell *matHeaderCellDef> Short Url </th> <th mat-header-cell *matHeaderCellDef> Short link </th>
<td mat-cell *matCellDef="let element"> ndy </td> <td mat-cell *matCellDef="let element">
<button mat-flat-button class="my-3" (click)="copyLink(element.id)">Copy short link</button>
</td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions">

View file

@ -16,7 +16,7 @@ import { MatButtonModule } from '@angular/material/button';
}) })
export class DashboardComponent { export class DashboardComponent {
public links: Link[] = []; public links: Link[] = [];
displayedColumns: string[] = ['id', 'name', 'link', 'symbol', 'actions']; displayedColumns: string[] = ['id', 'name', 'link', 'shortLink', 'actions'];
constructor(private linkService: LinkService, private router: Router) { }; constructor(private linkService: LinkService, private router: Router) { };