eqweqw #8

Open
s412146 wants to merge 3 commits from dominika_grajewska into master
2 changed files with 18 additions and 3 deletions
Showing only changes of commit b33a61e29b - Show all commits

View File

@ -1,3 +1,4 @@
<a style="float: right" routerLink="/"> Wyloguj </a>
<div class="container">
<div class="row">
<div class="col-md-6">
@ -67,7 +68,7 @@
<table class="table">
<table style="margin-top:40px;" class="table">
<thead>
<tr>
@ -88,9 +89,11 @@
<td>{{device.name}}</td>
<td>{{device.ip}}</td>
<td>edytuj</td>
<td><button (click)="onDeviceDelete(i)">usuń</button> </td>
<td><button style="background-color:white;border: 1px blue solid; color: blue; opacity:0.5;" (click)="onDeviceDelete(i)">edytuj</button></td>
<td><button style="background-color:white;border: 1px red solid; color: red; opacity:0.5;" (click)="onDeviceDelete(i); deleteRow(i)">usuń</button> </td>
</tr>
</tbody>
</table>

View File

@ -46,6 +46,18 @@ export class AdminComponent implements OnInit {
}
deleteRow(i){
this.devices.splice(i,1);
}
onDeviceEdit() {