Skip to content

Commit

Permalink
Merge pull request #1487 from sanger/reception-barcode-fix
Browse files Browse the repository at this point in the history
General Reception request options fix
  • Loading branch information
BenTopping authored Jan 16, 2024
2 parents eace1ed + 9a33505 commit 33feff9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/GeneralReception.vue
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,18 @@ export default {
// printEnabled is used to disable the print button if there are no barcodes to print
printEnabled: ({ printerName, printBarcodes }) => printerName && printBarcodes,
},
// Refetches the data when the barcodes field is changed
watch: {
// Refetches the data when the barcodes field is changed
barcodes: {
handler: 'debounceBarcodeFetch',
immediate: true,
},
// Refetches the data when a request option changes as it may require information from sequencescape
requestOptions: {
handler: 'debounceBarcodeFetch',
deep: true,
immediate: true,
},
},
methods: {
clearModal() {
Expand Down

0 comments on commit 33feff9

Please sign in to comment.