Skip to content

Commit d1a9bff

Browse files
committed
Remove deleted dataset filter
1 parent d1fd1cb commit d1a9bff

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

client/src/components/History/Graph/HistoryGraphView.vue

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { faBezierCurve, faProjectDiagram, faTrash } from "@fortawesome/free-solid-svg-icons";
2+
import { faBezierCurve, faProjectDiagram } from "@fortawesome/free-solid-svg-icons";
33
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
44
import { BAlert } from "bootstrap-vue";
55
import { computed, ref, toRef } from "vue";
@@ -32,12 +32,10 @@ const historyName = computed(() => historyStore.getHistoryNameById(props.history
3232
3333
// Fetch params — product decisions owned here
3434
const limit = ref(500);
35-
const includeDeleted = ref(false);
3635
3736
const { graphData, loading, error } = useHistoryGraphData(
3837
toRef(props, "historyId"),
3938
limit,
40-
includeDeleted,
4139
toRef(props, "seedNodeId"),
4240
);
4341
@@ -98,16 +96,6 @@ const isTruncated = computed(() => {
9896
@click="edgeStyle = 'curved'">
9997
<FontAwesomeIcon :icon="faBezierCurve" fixed-width />
10098
</GButton>
101-
<GButton
102-
tooltip
103-
:title="'Show deleted items'"
104-
size="small"
105-
color="blue"
106-
:outline="!includeDeleted"
107-
:pressed="includeDeleted"
108-
@click="includeDeleted = !includeDeleted">
109-
<FontAwesomeIcon :icon="faTrash" fixed-width />
110-
</GButton>
11199
</GButtonGroup>
112100
</div>
113101
</div>

client/src/components/History/Graph/useHistoryGraphData.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type { HistoryGraphResponse } from "./historyGraphMapper";
1313
export function useHistoryGraphData(
1414
historyId: Ref<string>,
1515
limit: Ref<number>,
16-
includeDeleted: Ref<boolean>,
1716
seed?: Ref<string | undefined>,
1817
) {
1918
const graphData = ref<HistoryGraphResponse | null>(null);
@@ -27,7 +26,6 @@ export function useHistoryGraphData(
2726
try {
2827
const query: Record<string, unknown> = {
2928
limit: limit.value,
30-
include_deleted: includeDeleted.value,
3129
};
3230
if (seed?.value) {
3331
query.seed = seed.value;
@@ -54,7 +52,7 @@ export function useHistoryGraphData(
5452
}
5553
}
5654

57-
const watchSources = seed ? [historyId, limit, includeDeleted, seed] : [historyId, limit, includeDeleted];
55+
const watchSources = seed ? [historyId, limit, seed] : [historyId, limit];
5856
watch(watchSources, () => fetchGraph(), { immediate: true });
5957

6058
return { graphData, loading, error };

0 commit comments

Comments
 (0)