main #6
2 changed files with 6 additions and 5 deletions
|
@ -15,7 +15,6 @@
|
|||
<th mat-header-cell *matHeaderCellDef> ID </th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
{{element.id}}
|
||||
<button mat-flat-button class="my-3" (click)="copyLink(element.id)">Copy short url</button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
|
@ -32,9 +31,11 @@
|
|||
</ng-container>
|
||||
|
||||
<!-- Symbol Column -->
|
||||
<ng-container matColumnDef="symbol">
|
||||
<th mat-header-cell *matHeaderCellDef> Short Url </th>
|
||||
<td mat-cell *matCellDef="let element"> ndy </td>
|
||||
<ng-container matColumnDef="shortLink">
|
||||
<th mat-header-cell *matHeaderCellDef> Short link </th>
|
||||
<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 matColumnDef="actions">
|
||||
|
|
|
@ -16,7 +16,7 @@ import { MatButtonModule } from '@angular/material/button';
|
|||
})
|
||||
export class DashboardComponent {
|
||||
public links: Link[] = [];
|
||||
displayedColumns: string[] = ['id', 'name', 'link', 'symbol', 'actions'];
|
||||
displayedColumns: string[] = ['id', 'name', 'link', 'shortLink', 'actions'];
|
||||
|
||||
constructor(private linkService: LinkService, private router: Router) { };
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue