mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Disable immutable inputs when editing a challenge (#9412)
* Disable uneditable inputs when editing a challenge * Revert prize display when creating
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
.form-group
|
.form-group
|
||||||
label
|
label
|
||||||
strong(v-once) {{$t('shortName')}} *
|
strong(v-once) {{$t('shortName')}} *
|
||||||
b-form-input(type="text", :placeholder="$t('shortNamePlaceholder')", v-model="workingChallenge.shortName")
|
b-form-input(type="text", :placeholder="$t('shortNamePlaceholder')", v-model="workingChallenge.shortName" :disabled="!creating")
|
||||||
.form-group
|
.form-group
|
||||||
label
|
label
|
||||||
strong(v-once) {{$t('challengeSummary')}} *
|
strong(v-once) {{$t('challengeSummary')}} *
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
// see https://github.com/HabitRPG/habitica/blob/develop/website/views/options/social/challenges.jade#L134
|
// see https://github.com/HabitRPG/habitica/blob/develop/website/views/options/social/challenges.jade#L134
|
||||||
button.btn.btn-primary(v-once, v-if='creating', @click='createChallenge()') {{$t('createChallengeCloneTasks')}}
|
button.btn.btn-primary(v-once, v-if='creating', @click='createChallenge()') {{$t('createChallengeCloneTasks')}}
|
||||||
button.btn.btn-primary(v-once, v-if='!creating', @click='updateChallenge()') {{$t('updateChallenge')}}
|
button.btn.btn-primary(v-once, v-if='!creating', @click='updateChallenge()') {{$t('updateChallenge')}}
|
||||||
.col-12.text-center
|
.col-12.text-center(v-if='creating')
|
||||||
p(v-once) {{$t('challengeMinimum')}}
|
p(v-once) {{$t('challengeMinimum')}}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user