mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:17:09 +00:00
Add control to reset comparisons view
This commit is contained in:
@@ -29,7 +29,6 @@
|
|||||||
:headers="projectHeaders"
|
:headers="projectHeaders"
|
||||||
:items="projects"
|
:items="projects"
|
||||||
dense
|
dense
|
||||||
hide-default-footer
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<template v-slot:item.baseline="{item, value, index}">
|
<template v-slot:item.baseline="{item, value, index}">
|
||||||
@@ -73,6 +72,15 @@
|
|||||||
{{ (value/1000).toFixed(1) }} km
|
{{ (value/1000).toFixed(1) }} km
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-slot:footer.prepend>
|
||||||
|
<v-btn v-if="comparison"
|
||||||
|
text
|
||||||
|
color="primary"
|
||||||
|
title="Back to summary"
|
||||||
|
@click="clearComparison"
|
||||||
|
>Back</v-btn>
|
||||||
|
</template>
|
||||||
|
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
|
|
||||||
<!-- BEGIN TEST -->
|
<!-- BEGIN TEST -->
|
||||||
@@ -228,7 +236,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clearComparison () {
|
||||||
|
this.baseline = null;
|
||||||
|
this.monitor = null;
|
||||||
|
},
|
||||||
|
|
||||||
setComparison (baseline, monitor) {
|
setComparison (baseline, monitor) {
|
||||||
|
this.clearComparison();
|
||||||
this.setBaseline(baseline);
|
this.setBaseline(baseline);
|
||||||
this.setMonitor(monitor);
|
this.setMonitor(monitor);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user