From a648f329b99b17434a4f81e6f2b89adbdc1b9622 Mon Sep 17 00:00:00 2001 From: Max <m.giller.dev@gmail.com> Date: Mon, 4 Oct 2021 21:14:24 +0200 Subject: [PATCH] Removed unused link properties from menu --- editor/editor.php | 12 +----------- editor/js/graph.js | 2 +- editor/js/tools/menus/selectmenu.js | 4 +--- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/editor/editor.php b/editor/editor.php index 9332ca1..f8048a1 100644 --- a/editor/editor.php +++ b/editor/editor.php @@ -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> diff --git a/editor/js/graph.js b/editor/js/graph.js index 094157c..22ba703 100644 --- a/editor/js/graph.js +++ b/editor/js/graph.js @@ -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, diff --git a/editor/js/tools/menus/selectmenu.js b/editor/js/tools/menus/selectmenu.js index 3076512..5da777f 100644 --- a/editor/js/tools/menus/selectmenu.js +++ b/editor/js/tools/menus/selectmenu.js @@ -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 } -- GitLab