Added edit component
This commit is contained in:
		@@ -18,7 +18,7 @@
 | 
				
			|||||||
            <td>{{c.created | date}}</td>
 | 
					            <td>{{c.created | date}}</td>
 | 
				
			||||||
            <td class="text-center">{{c.cost | currency}}</td>
 | 
					            <td class="text-center">{{c.cost | currency}}</td>
 | 
				
			||||||
            <td>
 | 
					            <td>
 | 
				
			||||||
                <mat-icon class="curs-pointer">edit</mat-icon>
 | 
					                <mat-icon class="curs-pointer" (click)="createComponent(c)">edit</mat-icon>
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
            <td>
 | 
					            <td>
 | 
				
			||||||
                <mat-icon class="curs-pointer" (click)="delete(c)">delete</mat-icon>
 | 
					                <mat-icon class="curs-pointer" (click)="delete(c)">delete</mat-icon>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,8 +27,8 @@ export class ViewComponents {
 | 
				
			|||||||
      );
 | 
					      );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  createComponent() {
 | 
					  createComponent(component?) {
 | 
				
			||||||
    this.dialog.open(NewComponentComponent);
 | 
					    this.dialog.open(NewComponentComponent, {data: component});
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  delete(component) {
 | 
					  delete(component) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user