Skip to content

Commit

Permalink
Disable item expansion on placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Sep 27, 2023
1 parent 2d219b2 commit 179eca8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/components/History/Content/ContentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ export default {
visualize: `/visualizations?dataset_id=${id}`,
};
},
isPlaceholder() {
return this.item.id === "placeholder";
},
},
methods: {
onKeyDown(event) {
Expand All @@ -219,6 +222,9 @@ export default {
}
},
onClick() {
if (this.isPlaceholder) {
return;
}
if (this.isDataset) {
this.$emit("update:expand-dataset", !this.expandDataset);
} else {
Expand Down

0 comments on commit 179eca8

Please sign in to comment.