implemented model list

This commit is contained in:
VLE2FE
2020-08-28 09:22:28 +02:00
parent f0aad664d0
commit 52e0d94e61
8 changed files with 71 additions and 9 deletions

View File

@ -25,7 +25,7 @@
</rb-icon-button>
</form>
<rb-table class="space-above">
<rb-table class="space-above space-below">
<tr>
<th>Name</th>
<th>URL</th>
@ -49,14 +49,27 @@
</td>
<td>
<span class="rb-ic rb-ic-delete clickable"
(click)="deleteModel(group.group, modelItem.name, modalDeleteConfirm)"></span>
(click)="delete(modalDeleteConfirm, modelItem.name, group.group)"></span>
</td>
</tr>
</ng-container>
</rb-table>
<rb-table>
<tr>
<th>Model files</th>
<th></th>
<th></th>
</tr>
<tr *ngFor="let file of d.arr.modelFiles">
<td>{{file.name}}</td>
<td>{{file.size | size:'M'}}</td>
<td><span class="rb-ic rb-ic-delete clickable" (click)="delete(modalDeleteConfirm, file.name)"></span></td>
</tr>
</rb-table>
<ng-template #modalDeleteConfirm>
<rb-alert alertTitle="Are you sure?" type="danger" okBtnLabel="Delete model" cancelBtnLabel="Cancel">
Do you really want to delete this model?
Do you really want to delete?
</rb-alert>
</ng-template>