ciyidogan commited on
Commit
a732f7e
·
verified ·
1 Parent(s): 33d06fd

Update flare-ui/src/app/components/projects/projects.component.html

Browse files
flare-ui/src/app/components/projects/projects.component.html CHANGED
@@ -51,7 +51,7 @@
51
  [class.deleted]="project.deleted">
52
  <mat-card-header>
53
  <div mat-card-avatar class="project-icon">
54
- <mat-icon>flight_takeoff</mat-icon>
55
  </div>
56
  <mat-card-title>{{ project.name }}</mat-card-title>
57
  <mat-card-subtitle>{{ project.caption || 'No description' }}</mat-card-subtitle>
@@ -88,15 +88,19 @@
88
  <!-- Table View -->
89
  <div class="table-container" *ngIf="viewMode === 'list' && filteredProjects.length > 0">
90
  <table mat-table [dataSource]="filteredProjects" class="projects-table">
 
91
  <!-- Name Column -->
92
  <ng-container matColumnDef="name">
93
  <th mat-header-cell *matHeaderCellDef>Name</th>
94
  <td mat-cell *matCellDef="let project">
95
- {{ project.name }}
96
- <mat-icon class="deleted-icon" *ngIf="project.deleted">delete</mat-icon>
 
 
 
97
  </td>
98
  </ng-container>
99
-
100
  <!-- Caption Column -->
101
  <ng-container matColumnDef="caption">
102
  <th mat-header-cell *matHeaderCellDef>Caption</th>
 
51
  [class.deleted]="project.deleted">
52
  <mat-card-header>
53
  <div mat-card-avatar class="project-icon">
54
+ <mat-icon>{{ project.icon || 'flight_takeoff' }}</mat-icon>
55
  </div>
56
  <mat-card-title>{{ project.name }}</mat-card-title>
57
  <mat-card-subtitle>{{ project.caption || 'No description' }}</mat-card-subtitle>
 
88
  <!-- Table View -->
89
  <div class="table-container" *ngIf="viewMode === 'list' && filteredProjects.length > 0">
90
  <table mat-table [dataSource]="filteredProjects" class="projects-table">
91
+
92
  <!-- Name Column -->
93
  <ng-container matColumnDef="name">
94
  <th mat-header-cell *matHeaderCellDef>Name</th>
95
  <td mat-cell *matCellDef="let project">
96
+ <div class="name-with-icon">
97
+ <mat-icon class="project-table-icon">{{ project.icon || 'flight_takeoff' }}</mat-icon>
98
+ {{ project.name }}
99
+ <mat-icon class="deleted-icon" *ngIf="project.deleted">delete</mat-icon>
100
+ </div>
101
  </td>
102
  </ng-container>
103
+
104
  <!-- Caption Column -->
105
  <ng-container matColumnDef="caption">
106
  <th mat-header-cell *matHeaderCellDef>Caption</th>