Skip to content

Commit

Permalink
fix open in History bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Mar 17, 2024
1 parent 1195737 commit 892e214
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions client/src/components/History/Content/ContentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,23 @@ const props = withDefaults(defineProps<Props>(), {
});
const emit = defineEmits<{
(e: "update:selected", selected: boolean): void;
(e: "update:expand-dataset", expand: boolean): void;
(e: "shift-select", direction: string): void;
(e: "init-key-selection"): void;
(e: "arrow-navigate", direction: string): void;
(e: "delete", item: any, recursive: boolean): void;
(e: "drag-start", evt: DragEvent): void;
(e: "hide-selection"): void;
(e: "init-key-selection"): void;
(e: "open-in-history", item: any): void;
(e: "select-all"): void;
(e: "selected-to", reset: boolean): void;
(e: "delete", item: any, recursive: boolean): void;
(e: "undelete"): void;
(e: "unhide"): void;
(e: "view-collection", item: any, name: string): void;
(e: "drag-start", evt: DragEvent): void;
(e: "shift-select", direction: string): void;
(e: "tag-change", item: any, newTags: Array<string>): void;
(e: "tag-click", tag: string): void;
(e: "toggleHighlights", item: any): void;
(e: "undelete"): void;
(e: "unhide"): void;
(e: "update:expand-dataset", expand: boolean): void;
(e: "update:selected", selected: boolean): void;
(e: "view-collection", item: any, name: string): void;
}>();
const entryPointStore = useEntryPointStore();
Expand Down Expand Up @@ -237,6 +238,7 @@ function onClick(e?: Event) {
} else {
emit("view-collection", props.item, props.name);
}
emit("open-in-history", props.item);
}
function onDisplay() {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/History/Content/GenericItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default {
const filters = {
deleted: item.deleted,
visible: item.visible,
hid: hid,
related: hid,
};
try {
await this.applyFilters(history_id, filters);
Expand Down

0 comments on commit 892e214

Please sign in to comment.