Ignore:
Timestamp:
2021-11-11T15:30:14+13:00 (2 years ago)
Author:
cstephen
Message:

Minor UI changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/macron-restoration/src/components/DirectInput.vue

    r35728 r35729  
    1717
    1818    <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" />
    2020        <label for="i-show-macronised-words">{{ translations.get('DirectInput_ShowMacronisedWords') }}</label>
    2121    </div>
    2222
    2323    <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" />
    2525        <label for="i-show-macronised-words">{{ translations.get('DirectInput_NormaliseLinebreaks') }}</label>
    2626    </div>
    2727
    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>
    2931</div>
    3032</template>
     
    8789    computed: {
    8890        canDownload() {
    89             return this.restored !== null && !this.waitingToMacronise;
     91            return this.restored.length > 0 && !this.waitingToMacronise;
    9092        },
    9193        input: {
Note: See TracChangeset for help on using the changeset viewer.