Skip to content
Snippets Groups Projects
Commit a648f329 authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Removed unused link properties from menu

parent 3e1595e3
No related branches found
No related tags found
No related merge requests found
......@@ -47,17 +47,7 @@
<textarea id="node-videos" name="node-videos"></textarea>
</div>
<div id="link-selected" class="hidden">
<h3 id="link-name" class="bottom-space">aud1 ↔ Sortieren</h3>
<label for="link-type">Type</label>
<select id="link-type" name="node-type" class="bottom-space medium-width">
<option value="Vorlesung">Vorlesung</option>
<option value="Algorithmus">Algorithmus</option>
<option value="Definition">Definition</option>
<option value="Beispiel">Beispiel</option>
<option value="Übung">Übung</option>
<option value="Kapitel">Kapitel</option>
</select>
<h3 id="link-name"></h3>
</div>
</div>
</section>
......
......@@ -22,7 +22,7 @@ export const GRAPH_LINKS = "links";
export const IMAGE_SIZE = 12;
export const IMAGE_SRC = PLUGIN_PATH + "datasets/images/";
export const LINK_PARAMS = [LINK_TYPE];
export const LINK_PARAMS = [];
export const NODE_PARAMS = [
NODE_ID,
NODE_LABEL,
......
......@@ -27,8 +27,7 @@ const NODE_MENU = [
];
const LINK_NAME_ID = "#link-name";
const LINK_TYPE_ID = "#link-type";
const LINK_MENU = [LINK_TYPE_ID];
const LINK_MENU = [];
const MENU = [...NODE_MENU, ...LINK_MENU];
......@@ -43,7 +42,6 @@ export class SelectMenu extends ToolMenu {
{ menu: NODE_TYPE_ID, property: Graph.NODE_TYPE },
{ menu: NODE_REF_ID, property: Graph.NODE_REFERENCES },
{ menu: NODE_VIDEOS_ID, property: Graph.NODE_VIDEOS },
{ menu: LINK_TYPE_ID, property: Graph.LINK_TYPE },
];
this.hooked = false; // Can only hook menu events once, but have to do it later, when they are loaded
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment