-
+
diff --git a/src/app/app.component.scss b/src/app/app.component.scss
index 9a9e4b0..cbf78c0 100644
--- a/src/app/app.component.scss
+++ b/src/app/app.component.scss
@@ -13,3 +13,21 @@
.bug-textarea {
width: 800px;
}
+
+.to-the-top-container {
+ position: relative;
+}
+
+.to-the-top {
+ position: absolute;
+ top: 100vh;
+ bottom: 10px;
+ right: 1rem;
+ pointer-events: none;
+
+ rb-icon-button {
+ position: sticky;
+ pointer-events: all;
+ top: calc(100vh - 3rem);
+ }
+}
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 59a1eed..9946350 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -59,6 +59,10 @@ URL: ${window.location}%0D%0A%0D%0AWhat did you do?%0D%0A${encodeURIComponent(th
closeBugReport(close) {
setTimeout(() => close(), 1);
}
+
+ toTheTop() {
+ window.scroll(0, 0);
+ }
}
diff --git a/src/app/samples/samples.component.html b/src/app/samples/samples.component.html
index 224fc8c..5c6acf2 100644
--- a/src/app/samples/samples.component.html
+++ b/src/app/samples/samples.component.html
@@ -111,7 +111,10 @@
add spectra
-
+
+ add conditions
+
+
flatten object
Copy to clipboard
diff --git a/src/app/samples/samples.component.scss b/src/app/samples/samples.component.scss
index 16c4ce3..4c4df56 100644
--- a/src/app/samples/samples.component.scss
+++ b/src/app/samples/samples.component.scss
@@ -52,6 +52,7 @@ rb-table {
}
.paging {
+ height: 50px;
rb-form-input {
max-width: 50px;
}
diff --git a/src/app/samples/samples.component.ts b/src/app/samples/samples.component.ts
index 03266c6..db184fe 100644
--- a/src/app/samples/samples.component.ts
+++ b/src/app/samples/samples.component.ts
@@ -34,7 +34,8 @@ export class SamplesComponent implements OnInit {
@ViewChild('pageSizeSelection') pageSizeSelection: ElementRef;
@ViewChild('linkarea') linkarea: ElementRef;
- downloadSpectra = false;
+ downloadSpectra = false; // TODO: streamline these options after csv option handling is clear
+ downloadCondition = false;
downloadFlatten = true;
samples: SampleModel[] = [];
totalSamples = 0; // total number of samples
@@ -236,6 +237,9 @@ export class SamplesComponent implements OnInit {
if (this.downloadSpectra) {
query.push('fields[]=measurements.spectrum.dpt');
}
+ if (this.downloadCondition) {
+ query.push('fields[]=condition');
+ }
}
return (options.host && isDevMode() ? window.location.host : '') +
(options.export ? this.api.hostName : '') +
diff --git a/src/styles.scss b/src/styles.scss
index 35d3720..245b146 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -13,6 +13,10 @@ $rb-extended-breakpoints: false; // whether to use extended breakpoints xxl and
box-sizing: border-box;
}
+body {
+ scroll-behavior: smooth;
+}
+
a, a:active, a:focus {
outline: 0 !important;
}