From 3af743a6e61ce6153b68ee4ddc3f568daaaa8757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 31 Jan 2023 22:31:27 +0000 Subject: [PATCH] BulmaBreadcrumb component --- ui/src/components/BulmaBreadcrumb.vue | 48 +++++++++++++++++++++++++++ ui/src/components/DoorMapEditor.vue | 24 ++------------ 2 files changed, 51 insertions(+), 21 deletions(-) create mode 100644 ui/src/components/BulmaBreadcrumb.vue diff --git a/ui/src/components/BulmaBreadcrumb.vue b/ui/src/components/BulmaBreadcrumb.vue new file mode 100644 index 0000000..e510e72 --- /dev/null +++ b/ui/src/components/BulmaBreadcrumb.vue @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/ui/src/components/DoorMapEditor.vue b/ui/src/components/DoorMapEditor.vue index 70de29d..0b6538f 100644 --- a/ui/src/components/DoorMapEditor.vue +++ b/ui/src/components/DoorMapEditor.vue @@ -2,23 +2,7 @@

Türchen bearbeiten

- + @@ -30,6 +14,7 @@ import { Vue, Options } from "vue-class-component"; import { Rectangle } from "./rects/rectangles"; +import BulmaBreadcrumb from "./BulmaBreadcrumb.vue"; import DoorPlacer from "./door_map/DoorPlacer.vue"; import DoorChooser from "./door_map/DoorChooser.vue"; @@ -40,6 +25,7 @@ type Step = { @Options({ components: { + BulmaBreadcrumb, DoorPlacer, DoorChooser, }, @@ -52,9 +38,5 @@ export default class extends Vue { ]; private current_step = 0; private rectangles: Rectangle[] = []; - - private change_step(next_step: number) { - this.current_step = next_step; - } }