Prevented challenge prize edit. Fixed edit to create modal (#9374)

This commit is contained in:
Keith Holliday
2017-11-02 11:30:01 -06:00
committed by GitHub
parent a28aea65f8
commit 0e5a811b98
2 changed files with 2 additions and 1 deletions

View File

@@ -47,7 +47,7 @@
label label
strong(v-once) {{$t('endDate')}} strong(v-once) {{$t('endDate')}}
b-form-input.end-date-input b-form-input.end-date-input
.form-group .form-group(v-if='creating')
label label
strong(v-once) {{$t('prize')}} strong(v-once) {{$t('prize')}}
input(type='number', :min='minPrize', :max='maxPrize', v-model="workingChallenge.prize") input(type='number', :min='minPrize', :max='maxPrize', v-model="workingChallenge.prize")

View File

@@ -150,6 +150,7 @@ export default {
this.filters = eventData; this.filters = eventData;
}, },
createChallenge () { createChallenge () {
this.$store.state.challengeOptions.workingChallenge = {};
this.$root.$emit('show::modal', 'challenge-modal'); this.$root.$emit('show::modal', 'challenge-modal');
}, },
async loadchallanges () { async loadchallanges () {