fix: ATTR_ENUMERATED_COERCION in a few places

This commit is contained in:
kolaente 2021-10-17 18:52:05 +02:00
parent 1864359751
commit 571b019c00
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
8 changed files with 12 additions and 12 deletions

View file

@ -90,7 +90,7 @@
@start="() => drag = true"
@end="e => saveListPosition(e, nk)"
handle=".handle"
:disabled="n.id < 0"
:disabled="n.id < 0 || null"
tag="transition-group"
item-key="id"
:component-data="{

View file

@ -2,7 +2,7 @@
<div :class="{'is-disabled': disabled}" class="fancycheckbox">
<input
:checked="checked"
:disabled="disabled"
:disabled="disabled || null"
:id="checkBoxId"
@change="(event) => updateData(event.target.checked)"
style="display: none;"

View file

@ -35,7 +35,7 @@
<label class="label">{{ $t('task.attributes.priority') }}</label>
<div class="control single-value-control">
<priority-select
:disabled="!filters.usePriority"
:disabled="!filters.usePriority || null"
v-model.number="filters.priority"
@change="setPriority"
/>
@ -53,7 +53,7 @@
<percent-done-select
v-model.number="filters.percentDone"
@change="setPercentDoneFilter"
:disabled="!filters.usePercentDone"
:disabled="!filters.usePercentDone || null"
/>
<fancycheckbox
v-model="filters.usePercentDone"

View file

@ -13,7 +13,7 @@
/>
<x-button
:loading="migrationService.loading"
:disabled="migrationService.loading"
:disabled="migrationService.loading || null"
@click="$refs.uploadInput.click()"
>
{{ $t('migrate.upload') }}
@ -23,7 +23,7 @@
<p>{{ $t('migrate.authorize', {name: name}) }}</p>
<x-button
:loading="migrationService.loading"
:disabled="migrationService.loading"
:disabled="migrationService.loading || null"
:href="authUrl"
>
{{ $t('migrate.getStarted') }}

View file

@ -16,7 +16,7 @@
/>
</div>
<div class="control">
<x-button @click="setApiUrl" :disabled="apiUrl === ''">
<x-button @click="setApiUrl" :disabled="apiUrl === '' || null">
{{ $t('apiConfig.change') }}
</x-button>
</div>

View file

@ -6,14 +6,14 @@
v-if="totalPages > 1"
>
<router-link
:disabled="currentPage === 1 ? true : null"
:disabled="currentPage === 1 || null"
:to="getRouteForPagination(currentPage - 1)"
class="pagination-previous"
tag="button">
{{ $t('misc.previous') }}
</router-link>
<router-link
:disabled="currentPage === totalPages ? true : null"
:disabled="currentPage === totalPages || null"
:to="getRouteForPagination(currentPage + 1)"
class="pagination-next"
tag="button">

View file

@ -4,7 +4,7 @@
:icon="icon"
v-tooltip="tooltipText"
@click="changeSubscription"
:disabled="disabled"
:disabled="disabled || null"
v-if="isButton"
>
{{ buttonText }}

View file

@ -32,7 +32,7 @@
<div class="control">
<input
:class="{ 'disabled': listService.loading}"
:disabled="listService.loading"
:disabled="listService.loading ? true : null"
@keyup.enter="save"
class="input"
id="identifier"
@ -48,7 +48,7 @@
<editor
:class="{ 'disabled': listService.loading}"
:disabled="listService.loading"
:preview-is-default="false"
:previewIsDefault="false"
id="listdescription"
:placeholder="$t('list.edit.descriptionPlaceholder')"
v-model="list.description"