Skip to content

Commit

Permalink
Add protection against making a 0 area claim
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jul 22, 2019
1 parent 54550b9 commit 8d999a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ClaimCreator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
<b-alert variant="warning" show>You must select an area on the map first!</b-alert>
</div>

<div v-if="selectedArea !== null ">
<div v-if="selectedArea !== null && this.area < 1">
<b-alert variant="warning" show>You must select an area that is atleast 3x3 blocks big!</b-alert>
</div>

<div v-if="selectedArea !== null && this.area > 1 ">
<div>
<div>
You are creating a claim that is
Expand Down

0 comments on commit 8d999a3

Please sign in to comment.