From 3395972b8ed4780dff78961911098b3e2152736f Mon Sep 17 00:00:00 2001 From: Kieron Taylor Date: Thu, 8 Aug 2024 17:48:36 +0100 Subject: [PATCH 1/3] Extend WellTable to render clickable icons that will emit an event with the run name for that row --- frontend/src/components/WellTable.vue | 10 ++++++---- frontend/src/components/__tests__/WellTable.spec.js | 11 +++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/WellTable.vue b/frontend/src/components/WellTable.vue index 29c0699..526f08b 100644 --- a/frontend/src/components/WellTable.vue +++ b/frontend/src/components/WellTable.vue @@ -3,16 +3,18 @@ * Renders a table for a list of wells and generates buttons for selecting wells */ import { combineLabelWithPlate, listStudiesForTooltip } from "../utils/text.js" -import { ElTooltip, ElButton } from "element-plus"; +import { ElTooltip, ElButton } from "element-plus" +import { Top } from "@element-plus/icons-vue" const tooltipDelay = 500 const studyNameHighlight = 'BIOSCAN UK for flying insects' defineProps({ - wellCollection: Object + wellCollection: Object, + allowNav: Boolean, }) -defineEmits(['wellSelected']) +defineEmits(['wellSelected', 'runSelected'])