Changeset 35729 for main/trunk/model-interfaces-dev/atea/macron-restoration/src/components/DirectInput.vue
- Timestamp:
- 2021-11-11T15:30:14+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/macron-restoration/src/components/DirectInput.vue
r35728 r35729 17 17 18 18 <div class="flex"> 19 <input type="checkbox" id="i-show-macronised-words" v-model="showMacronisedWords" />19 <input type="checkbox" id="i-show-macronised-words" v-model="showMacronisedWords" :disabled="restored.length === 0" /> 20 20 <label for="i-show-macronised-words">{{ translations.get('DirectInput_ShowMacronisedWords') }}</label> 21 21 </div> 22 22 23 23 <div class="flex right-column"> 24 <input type="checkbox" id="i-show-macronised-words" v-model="normaliseLinebreaks" />24 <input type="checkbox" id="i-show-macronised-words" v-model="normaliseLinebreaks" :disabled="restored.length === 0" /> 25 25 <label for="i-show-macronised-words">{{ translations.get('DirectInput_NormaliseLinebreaks') }}</label> 26 26 </div> 27 27 28 <button class="btn-primary right-column" :disabled="!canDownload" @click="downloadAsText">{{ translations.get('DirectInput_Download') }}</button> 28 <button class="btn-primary right-column" :disabled="!canDownload" @click="downloadAsText"> 29 {{ translations.get('DirectInput_Download') }} 30 </button> 29 31 </div> 30 32 </template> … … 87 89 computed: { 88 90 canDownload() { 89 return this.restored !== null&& !this.waitingToMacronise;91 return this.restored.length > 0 && !this.waitingToMacronise; 90 92 }, 91 93 input: {
Note:
See TracChangeset
for help on using the changeset viewer.