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