bday2020/ui/src/components/admin/Preview.vue

27 lines
507 B
Vue
Raw Normal View History

2020-09-07 15:53:06 +00:00
<template>
<form @submit="check">
<h2>Vorschau</h2>
2020-09-08 00:59:01 +00:00
<button value="next">Sieht gesund aus. Absenden!</button>
<button value="back" class="back">Da fehlt noch was. Zurück!</button>
2020-09-07 15:53:06 +00:00
</form>
</template>
<script>
export default {
name: "Preview",
methods: {
check(event) {
2020-09-08 00:59:01 +00:00
event.preventDefault();
event.submitter.disabled = true;
if (event.submitter.value === "next") {
// success
2020-09-07 15:53:06 +00:00
} else {
2020-09-08 00:59:01 +00:00
this.$emit("back");
2020-09-07 15:53:06 +00:00
}
},
},
};
</script>