fix: disabled attribute fallback (#1984)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1984
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni 2022-05-22 15:08:37 +00:00 committed by konrad
parent 235967844a
commit 96fce73192
16 changed files with 19 additions and 19 deletions

View file

@ -94,7 +94,7 @@
@start="() => drag = true"
@end="saveListPosition"
handle=".handle"
:disabled="n.id < 0 || null"
:disabled="n.id < 0 || undefined"
tag="transition-group"
item-key="id"
:data-namespace-id="n.id"

View file

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

View file

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

View file

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

View file

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

View file

@ -5,7 +5,7 @@
:icon="iconName"
v-tooltip="tooltipText"
@click="changeSubscription"
:disabled="disabled || null"
:disabled="disabled || undefined"
>
{{ buttonText }}
</x-button>

View file

@ -11,7 +11,7 @@
<div class="control">
<input
:class="{ disabled: taskService.loading }"
:disabled="taskService.loading || null"
:disabled="taskService.loading || undefined"
@change="editTaskSubmit()"
class="input"
id="tasktext"

View file

@ -8,7 +8,7 @@
</h3>
<input
:disabled="attachmentService.loading || null"
:disabled="attachmentService.loading || undefined"
@change="uploadNewAttachment()"
id="files"
multiple

View file

@ -30,7 +30,7 @@
<flat-pickr
:class="{ disabled: taskService.loading }"
:config="flatPickerConfig"
:disabled="taskService.loading || null"
:disabled="taskService.loading || undefined"
class="input"
v-model="dueDate"
/>

View file

@ -13,7 +13,7 @@
<div class="control">
<input
:class="{ 'disabled': filterService.loading}"
:disabled="filterService.loading || null"
:disabled="filterService.loading || undefined"
@keyup.enter="saveSavedFilter"
class="input"
id="title"

View file

@ -13,7 +13,7 @@
<input
v-model="savedFilter.title"
:class="{ 'disabled': savedFilterService.loading}"
:disabled="savedFilterService.loading || null"
:disabled="savedFilterService.loading || undefined"
class="input"
id="Title"
:placeholder="$t('filters.attributes.titlePlaceholder')"

View file

@ -183,7 +183,7 @@
<div class="bucket new-bucket" v-if="canWrite && !loading && buckets.length > 0">
<input
:class="{'is-loading': loading}"
:disabled="loading || null"
:disabled="loading || undefined"
@blur="() => showNewBucketInput = false"
@keyup.enter="createNewBucket"
@keyup.esc="$event.target.blur()"

View file

@ -12,7 +12,7 @@
<div class="control">
<input
:class="{ 'disabled': listService.loading}"
:disabled="listService.loading || null"
:disabled="listService.loading || undefined"
@keyup.enter="save"
class="input"
id="title"

View file

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

View file

@ -13,7 +13,7 @@
<div class="control">
<input
:class="{ 'disabled': namespaceService.loading}"
:disabled="namespaceService.loading || null"
:disabled="namespaceService.loading || undefined"
class="input"
id="namespacetext"
:placeholder="$t('namespace.attributes.titlePlaceholder')"

View file

@ -10,7 +10,7 @@
<div class="control">
<input
:class="{ disabled: teamMemberService.loading }"
:disabled="teamMemberService.loading || null"
:disabled="teamMemberService.loading || undefined"
class="input"
id="teamtext"
:placeholder="$t('team.attributes.namePlaceholder')"