Challenges plus misc fixes (#8961)

* Forced full refresh after deletE

* Fixed styles on firefox

* Removed instagram link

* Added information to modal

* Fixed deleteing and task keeping

* Added redirect to challenge detail after created

* Updated challenge item styles

* Added new limit option to challenges
This commit is contained in:
Keith Holliday
2017-08-17 11:03:32 -06:00
committed by GitHub
parent f5cf27a79e
commit de63622cdd
13 changed files with 60 additions and 33 deletions

View File

@@ -14,11 +14,12 @@
strong(v-once) {{$t('description')}}*
div.description-count.float-right {{charactersRemaining}} {{ $t('charactersRemaining') }}
b-form-input.description-textarea(type="text", textarea, :placeholder="$t('challengeDescriptionPlaceHolder')", v-model="workingChallenge.description")
// @TODO: Implemenet in V2 .form-group
.form-group
label
strong(v-once) {{$t('guildInformation')}}*
strong(v-once) Challenge Information*
a.float-right {{ $t('markdownFormattingHelp') }}
b-form-input.information-textarea(type="text", textarea, :placeholder="$t('challengeInformationPlaceHolder')", v-model="workingChallenge.information")
b-form-input.information-textarea(type="text", textarea,
:placeholder="$t('challengeInformationPlaceHolder')", v-model="workingChallenge.description")
.form-group(v-if='creating')
label
strong(v-once) {{$t('where')}}
@@ -296,6 +297,7 @@ export default {
this.$emit('createChallenge', challenge);
this.ressetWorkingChallenge();
this.$root.$emit('hide::modal', 'challenge-modal');
this.$router.push(`/challenges/${challenge._id}`);
},
updateChallenge () {
this.$emit('updatedChallenge', {