You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mediarepo/mediarepo-ui/src/app/components/shared/repository/repository-maintenance/repository-maintenance.comp...

30 lines
1.3 KiB
HTML

<mat-card>
<mat-card-header>
<mat-card-title>
<h1>Maintenance</h1></mat-card-title>
</mat-card-header>
<mat-card-content>
<div class="button-list">
<button (click)="this.runJob('CheckIntegrity', false)" color="primary" mat-flat-button>Check Integrity
</button>
<button (click)="this.runJob('Vacuum', false)" color="primary" mat-flat-button>Optimize Database</button>
<button (click)="this.runJob('GenerateThumbnails', true)"
[disabled]="this.jobState.GenerateThumbnails"
color="primary"
mat-flat-button>Generate missing
Thumbnails
<mat-progress-bar *ngIf="this.jobState.GenerateThumbnails" color="primary"
mode="indeterminate"></mat-progress-bar>
</button>
<button (click)="this.runJob('CalculateSizes', true)"
[disabled]="this.jobState.CalculateSizes"
color="primary"
mat-flat-button>Recalculate Repository
Size
<mat-progress-bar *ngIf="this.jobState.CalculateSizes" color="primary"
mode="indeterminate"></mat-progress-bar>
</button>
</div>
</mat-card-content>
</mat-card>