Spaces:
Building
Building
Update flare-ui/src/app/components/projects/projects.component.ts
Browse files
flare-ui/src/app/components/projects/projects.component.ts
CHANGED
@@ -47,6 +47,9 @@ export class ProjectsComponent implements OnInit {
|
|
47 |
loading = false;
|
48 |
message = '';
|
49 |
isError = false;
|
|
|
|
|
|
|
50 |
|
51 |
constructor(
|
52 |
private apiService: ApiService,
|
@@ -243,6 +246,10 @@ export class ProjectsComponent implements OnInit {
|
|
243 |
return date.toLocaleDateString();
|
244 |
}
|
245 |
|
|
|
|
|
|
|
|
|
246 |
private showMessage(message: string, isError: boolean) {
|
247 |
this.message = message;
|
248 |
this.isError = isError;
|
@@ -251,4 +258,4 @@ export class ProjectsComponent implements OnInit {
|
|
251 |
this.message = '';
|
252 |
}, 5000);
|
253 |
}
|
254 |
-
}
|
|
|
47 |
loading = false;
|
48 |
message = '';
|
49 |
isError = false;
|
50 |
+
|
51 |
+
// For table view
|
52 |
+
displayedColumns: string[] = ['name', 'caption', 'versions', 'status', 'lastUpdate', 'actions'];
|
53 |
|
54 |
constructor(
|
55 |
private apiService: ApiService,
|
|
|
246 |
return date.toLocaleDateString();
|
247 |
}
|
248 |
|
249 |
+
trackByProjectId(index: number, project: Project): number {
|
250 |
+
return project.id;
|
251 |
+
}
|
252 |
+
|
253 |
private showMessage(message: string, isError: boolean) {
|
254 |
this.message = message;
|
255 |
this.isError = isError;
|
|
|
258 |
this.message = '';
|
259 |
}, 5000);
|
260 |
}
|
261 |
+
}
|