46 lines
1.8 KiB
HTML
46 lines
1.8 KiB
HTML
<h1 mat-dialog-title>MDStore Versions</h1>
|
|
|
|
<div mat-dialog-content>
|
|
<div style="text-align: right;">
|
|
<button mat-stroked-button color="primary" (click)="reload()">refresh</button>
|
|
</div>
|
|
<table class="mdstore-table small">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 50%">ID</th>
|
|
<th style="width: 20%; text-align: center;">Read Count</th>
|
|
<th style="width: 20%; text-align: center;">Last Update</th>
|
|
<th style="width: 10%; text-align: right;">Size</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr *ngFor="let v of versions" [ngClass]="{'active-row': v.id == data.currentVersion}">
|
|
<td title="{{v.hdfsPath}}">
|
|
<mat-icon fontIcon="edit" *ngIf="v.writing" title="writing..."></mat-icon>
|
|
<b> {{v.id}}</b>
|
|
<br />
|
|
<span class="small"><b>Path:</b> {{v.hdfsPath}}</span><br />
|
|
<button mat-stroked-button color="primary" (click)="openInspectorPage(v)">inspect</button>
|
|
<button mat-stroked-button color="basic" *ngIf="v.writing" (click)="commitVersion(v)">commit</button>
|
|
<button mat-stroked-button color="warn" *ngIf="v.writing" (click)="abortVersion(v)">abort</button>
|
|
<button mat-stroked-button color="warn" *ngIf="!v.writing && v.readCount == 0 && v.id != data.currentVersion"
|
|
(click)="deleteVersion(v)">delete</button>
|
|
</td>
|
|
<td style="text-align: center;">
|
|
{{v.readCount}}
|
|
<button mat-stroked-button color="primary" (click)="resetReading(v)"
|
|
[disabled]="v.readCount == 0">reset</button>
|
|
</td>
|
|
<td style="text-align: center;" title="{{v.lastUpdate}}">{{v.lastUpdate | date:"MMM dd,
|
|
yyyy 'at' HH:mm"}}</td>
|
|
<td style="text-align: right;">{{v.size}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div mat-dialog-actions>
|
|
<button mat-stroked-button color="primary" mat-dialog-close>Close</button>
|
|
</div>
|