Skip to content

Commit

Permalink
Fix selection issues for assays
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Nov 14, 2020
1 parent 3c10eb8 commit ad859a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/navigation-drawers/AssayItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<div
@click="clickCheckbox()"
@click="selectAssay()"
@contextmenu="showContextMenu()"
:class="{
'assay-item': true,
Expand Down Expand Up @@ -323,6 +323,14 @@ export default class AssayItem extends Vue {
this.$store.dispatch("processAssay", [this.assay, true]);
}
private selectAssay() {
if (this.selectable) {
this.clickCheckbox();
} else {
this.$emit("select-assay", this.assay);
}
}
private async duplicateAssay() {
let assayName = this.assay.getName();
Expand Down
1 change: 1 addition & 0 deletions src/components/navigation-drawers/SelectableStudyItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default class SelectableStudyItem extends Vue {
}
private toggleAssayComparison(assay: Assay) {
console.log("Toggle comparison: " + assay.getId());
const idx = this.selectedAssays.indexOf(assay);
if (idx !== -1) {
// Remove from the selected assays
Expand Down

0 comments on commit ad859a6

Please sign in to comment.