27 lines
No EOL
507 B
Vue
27 lines
No EOL
507 B
Vue
<template>
|
|
<form @submit="check">
|
|
<h2>Vorschau</h2>
|
|
|
|
<button value="next">Sieht gesund aus. Absenden!</button>
|
|
<button value="back" class="back">Da fehlt noch was. Zurück!</button>
|
|
</form>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "Preview",
|
|
|
|
methods: {
|
|
check(event) {
|
|
event.preventDefault();
|
|
event.submitter.disabled = true;
|
|
|
|
if (event.submitter.value === "next") {
|
|
// success
|
|
} else {
|
|
this.$emit("back");
|
|
}
|
|
},
|
|
},
|
|
};
|
|
</script> |