diff --git a/src/app/prediction/prediction.component.html b/src/app/prediction/prediction.component.html index db1dbdb..1bbe7ba 100644 --- a/src/app/prediction/prediction.component.html +++ b/src/app/prediction/prediction.component.html @@ -40,7 +40,7 @@
- @@ -72,6 +72,20 @@ Export to PDF + + +
+ + + Save Prediction + + + + Prediction saved! + + +
+
('/prediction/new', prediction); + } + // Aggregates spectrum names and prediction values into an associative array prepareExport() { const zip = (a, b) => a.map((k, i) => [k, b[i]]); const values = this.result.predictions - .map(prediction => prediction - .filter(field => field.category === 'Prediction') - .map(field => field.value)); - return zip(this.spectrumNames, values); + .map(prediction => prediction + .filter(field => field.category === 'Prediction') + .map(field => field.value)); + return zip(this.spectrumNames, values); } // Generates a timestamp suitable for file naming