Skip to content

Commit

Permalink
++ add required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoaudy committed Aug 27, 2019
1 parent f29b3dc commit 22c672d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions resources/views/manthra-index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
style="color:red">*</sup></label>
<div class="control">
<input class="input" type="text" v-model="model"
placeholder="eg: Post">
placeholder="eg: Post" required>
</div>
</div>
</div>
Expand Down Expand Up @@ -57,7 +57,7 @@
<div class="column">
<div class="control">
<input class="input" type="text" v-model="field.name"
placeholder="Field Name">
placeholder="Field Name" required>
</div>
</div>
<div class="column">
Expand Down Expand Up @@ -238,7 +238,11 @@
}, 1000)
} catch (error) {
this.loading = false
alert(error)
this.$toasted.show("whoops looks like something went wrong, please check your input. 🔥🔥🔥", {
theme: "outline",
position: "top-right",
duration : 5000
});
}
}
}
Expand Down

0 comments on commit 22c672d

Please sign in to comment.