+
{{ meldung }}
-
-
-
-
-
- Feature erstellen
-
- {{ meldung }}
-
-
-
- Feature entfernen
- „{{ modal.feature.sektionen.titel }}“ entfernen?
- {{ meldung }}
-
-
-
-
+
+
diff --git a/frontend/src/components/KontextMenue.vue b/frontend/src/components/KontextMenue.vue
new file mode 100644
index 0000000..6a82057
--- /dev/null
+++ b/frontend/src/components/KontextMenue.vue
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/frontend/src/components/ModalBox.vue b/frontend/src/components/ModalBox.vue
new file mode 100644
index 0000000..338d737
--- /dev/null
+++ b/frontend/src/components/ModalBox.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
+
{{ titel }}
+
{{ frage }}
+
+
{{ meldung }}
+
+
+
+
diff --git a/frontend/src/components/SeitenLeiste.vue b/frontend/src/components/SeitenLeiste.vue
index 27d5f6b..0143ba7 100644
--- a/frontend/src/components/SeitenLeiste.vue
+++ b/frontend/src/components/SeitenLeiste.vue
@@ -1,8 +1,10 @@
-
@@ -220,5 +164,4 @@ li.aktiv { background: var(--bg); font-weight: 600; }
white-space: nowrap;
}
li input { width: 100%; padding: 0.1rem 0.4rem; }
-
diff --git a/frontend/src/composables/kontextmenue.js b/frontend/src/composables/kontextmenue.js
new file mode 100644
index 0000000..cbe102e
--- /dev/null
+++ b/frontend/src/composables/kontextmenue.js
@@ -0,0 +1,15 @@
+import { ref } from 'vue'
+
+// Ein einziges Kontextmenü für die ganze App — ein neues verdrängt das alte,
+// darum kann nie mehr als eines offen sein.
+export const kontextMenue = ref(null) // {eintraege: [{text, aktion}], x, y}
+
+export function oeffneMenue(e, eintraege) {
+ kontextMenue.value = { eintraege, x: e.clientX, y: e.clientY }
+}
+
+export function schliesseMenue() {
+ kontextMenue.value = null
+}
+
+window.addEventListener('click', schliesseMenue)