disable editing if form submitted

This commit is contained in:
Nikolaos Laskaris 2017-11-16 12:10:51 +02:00
parent b5ff5bd45f
commit eabb3b7022
2 changed files with 5 additions and 1 deletions

View File

@ -40,4 +40,8 @@ tr.hover:hover > * {
.cursor-hand{ .cursor-hand{
cursor: pointer; cursor: pointer;
}
.hidden-keepspace{
visibility: hidden;
} }

View File

@ -62,7 +62,7 @@
<td>{{dataset?.created | date:'yyyy-MM-dd HH:mm:ss Z'}}</td> <td>{{dataset?.created | date:'yyyy-MM-dd HH:mm:ss Z'}}</td>
<td>{{dataset?.status | statusToString }}</td> <td>{{dataset?.status | statusToString }}</td>
<td> <td>
<a *ngIf="dataset.status!=2" class="editGridColumn cursor-hand disabled" (click)="editRow(dataset, $event)"> <a [ngClass]="{'hidden-keepspace': dataset.status==2 }" class="editGridColumn cursor-hand disabled" (click)="editRow(dataset, $event)">
<i class="fa fa-pencil fa-fw" data-toggle="tooltip" title="edit Properties" id="editDataset"></i></a> <i class="fa fa-pencil fa-fw" data-toggle="tooltip" title="edit Properties" id="editDataset"></i></a>
<a class="editGridColumn cursor-hand" (click)="editRow(dataset, $event)"> <a class="editGridColumn cursor-hand" (click)="editRow(dataset, $event)">
<i class="fa fa-eraser fa-fw" data-toggle="modal" data-target="#delete-dataset-confirm" (click)="markDatasetForDelete(dataset)" title="delete Dataset"></i></a> <i class="fa fa-eraser fa-fw" data-toggle="modal" data-target="#delete-dataset-confirm" (click)="markDatasetForDelete(dataset)" title="delete Dataset"></i></a>