Allow viscosity number predictions to be saved
This commit is contained in:
@ -40,7 +40,7 @@
|
||||
</div>
|
||||
|
||||
<div class="file-input space-below">
|
||||
<rb-form-file name="spectrum-upload" label="spectrum file" maxSize="10000000" class="space-below" multiple
|
||||
<rb-form-file name="spectrum-upload" label="Spectrum File" maxSize="10000000" class="space-below" multiple
|
||||
(ngModelChange)="fileToArray($event)" placeholder="Select file or drag and drop" dragDrop ngModel>
|
||||
</rb-form-file>
|
||||
|
||||
@ -72,6 +72,20 @@
|
||||
Export to PDF
|
||||
</rb-icon-button>
|
||||
|
||||
<!-- Save Prediction -->
|
||||
<!-- Only available for single sample viscosity number predictions -->
|
||||
<div *ngIf="spectrumNames.length && !multipleSamples && activeGroup.group === 'Viscosity Number'">
|
||||
<rb-form-input name="prediction-name" label="Prediction Name" [(ngModel)]="predictionName"></rb-form-input>
|
||||
<rb-icon-button icon="forward-right" mode="secondary" (click)="savePrediction()" [rbModal]="modalSuccess">
|
||||
Save Prediction
|
||||
</rb-icon-button>
|
||||
<ng-template #modalSuccess>
|
||||
<rb-alert alertTitle="Success" type="success" okBtnLabel="Got it">
|
||||
Prediction saved!
|
||||
</rb-alert>
|
||||
</ng-template>
|
||||
</div>
|
||||
|
||||
<div class="dpt-chart space-below">
|
||||
<canvas baseChart
|
||||
class="dpt-chart"
|
||||
|
Reference in New Issue
Block a user