diff --git a/ui/src/components/BulmaBreadcrumb.vue b/ui/src/components/BulmaBreadcrumbs.vue similarity index 75% rename from ui/src/components/BulmaBreadcrumb.vue rename to ui/src/components/BulmaBreadcrumbs.vue index 5d1b546..49f39a1 100644 --- a/ui/src/components/BulmaBreadcrumb.vue +++ b/ui/src/components/BulmaBreadcrumbs.vue @@ -4,7 +4,7 @@
  • @@ -29,20 +29,20 @@ export interface Step { @Options({ props: { steps: Array, - current: Number, + modelValue: Number, }, - emits: ["update:current"], + emits: ["update:modelValue"], }) export default class extends Vue { private steps!: Step[]; - private current!: number; + private modelValue!: number; private change_step(next_step: number) { - if (next_step === this.current) { + if (next_step === this.modelValue) { return; } - this.$emit("update:current", next_step); + this.$emit("update:modelValue", next_step); } } \ No newline at end of file diff --git a/ui/src/components/DoorMapEditor.vue b/ui/src/components/DoorMapEditor.vue index 77d65bb..81b7e73 100644 --- a/ui/src/components/DoorMapEditor.vue +++ b/ui/src/components/DoorMapEditor.vue @@ -2,7 +2,7 @@

    Türchen bearbeiten

    - + @@ -15,13 +15,13 @@ import { Vue, Options } from "vue-class-component"; import { Door } from "./door_map/calendar"; import { Rectangle } from "./rects/rectangles"; -import BulmaBreadcrumb, { Step } from "./BulmaBreadcrumb.vue"; +import BulmaBreadcrumbs, { Step } from "./BulmaBreadcrumbs.vue"; import DoorPlacer from "./door_map/DoorPlacer.vue"; import DoorChooser from "./door_map/DoorChooser.vue"; @Options({ components: { - BulmaBreadcrumb, + BulmaBreadcrumbs, DoorPlacer, DoorChooser, },