Skip to content

Commit e3fe328

Browse files
Revert "feat: add citations for the knowledge graph - AB-938 (#1270)" (#1274)
This reverts commit ad748d0.
1 parent d1a4b4e commit e3fe328

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ playground/
2525
*.mp4
2626
.turbo
2727
styles.css
28-
.aider*
28+
.aider*

src/ui/src/builder/sidebar/BuilderSidebarComponentTreeBranch.vue

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,7 @@
1717
:disable-collapse="COMPONENT_TYPES_ROOT.has(component.type)"
1818
:no-nested-space="COMPONENT_TYPES_ROOT.has(component.type)"
1919
:collapsed="isOutsideActivePage"
20-
:right-click-options="rightClickDropdownOptions"
21-
:dropdown-options="
22-
component?.type === 'blueprints_blueprint' &&
23-
isDeleteAllowed(props.componentId)
24-
? rightClickDropdownOptions
25-
: undefined
26-
"
2720
@select="select"
28-
@dropdown-select="handleDropdownSelect($event)"
2921
@dragover="handleDragOver"
3022
@dragstart="handleDragStart"
3123
@dragend="handleDragEnd"
@@ -91,7 +83,6 @@ import {
9183
COMPONENT_TYPES_TOP_LEVEL,
9284
} from "@/constants/component";
9385
import WdsIcon from "@/wds/WdsIcon.vue";
94-
import type { WdsDropdownMenuOption } from "@/wds/WdsDropdownMenu.vue";
9586
9687
const props = defineProps({
9788
componentId: { type: String, required: true },
@@ -100,9 +91,6 @@ const props = defineProps({
10091
10192
const treeBranch = ref<ComponentPublicInstance<typeof BuilderTree>>();
10293
103-
const rightClickDropdownOptions: WdsDropdownMenuOption[] = [
104-
{ label: "Delete", value: "delete", icon: "trash-2" },
105-
];
10694
const wf = inject(injectionKeys.core);
10795
const wfbm = inject(injectionKeys.builderManager);
10896
const selected = computed(() => wfbm.isComponentIdSelected(props.componentId));
@@ -113,12 +101,11 @@ const {
113101
moveComponent,
114102
goToComponentParentPage,
115103
isDraggingAllowed,
116-
isDeleteAllowed,
117104
} = useComponentActions(wf, wfbm, tracking);
118105
const { getComponentInfoFromDrag, removeInsertionCandidacy, isParentSuitable } =
119106
useDragDropComponent(wf);
120107
const { isComponentVisible } = useEvaluator(wf);
121-
const emits = defineEmits(["expandBranch", "delete"]);
108+
const emit = defineEmits(["expandBranch"]);
122109
123110
const q = computed(() => props.query?.toLocaleLowerCase() ?? "");
124111
@@ -158,7 +145,7 @@ async function select(ev: MouseEvent | KeyboardEvent) {
158145
function expand() {
159146
if (!treeBranch.value) return;
160147
treeBranch.value.expand();
161-
emits("expandBranch");
148+
emit("expandBranch");
162149
}
163150
164151
function scrollToShow() {
@@ -214,10 +201,6 @@ function handleDrop(ev: DragEvent) {
214201
removeInsertionCandidacy(ev);
215202
}
216203
217-
function handleDropdownSelect(action: string) {
218-
if (action === "delete") emits("delete");
219-
}
220-
221204
const isOutsideActivePage = computed(() => {
222205
if (!wf.activePageId.value) return false;
223206

0 commit comments

Comments
 (0)