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:
parent
235967844a
commit
96fce73192
16 changed files with 19 additions and 19 deletions
|
@ -94,7 +94,7 @@
|
||||||
@start="() => drag = true"
|
@start="() => drag = true"
|
||||||
@end="saveListPosition"
|
@end="saveListPosition"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
:disabled="n.id < 0 || null"
|
:disabled="n.id < 0 || undefined"
|
||||||
tag="transition-group"
|
tag="transition-group"
|
||||||
item-key="id"
|
item-key="id"
|
||||||
:data-namespace-id="n.id"
|
:data-namespace-id="n.id"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div :class="{'is-disabled': disabled}" class="fancycheckbox">
|
<div :class="{'is-disabled': disabled}" class="fancycheckbox">
|
||||||
<input
|
<input
|
||||||
:checked="checked"
|
:checked="checked"
|
||||||
:disabled="disabled || null"
|
:disabled="disabled || undefined"
|
||||||
:id="checkBoxId"
|
:id="checkBoxId"
|
||||||
@change="(event) => updateData(event.target.checked)"
|
@change="(event) => updateData(event.target.checked)"
|
||||||
type="checkbox"/>
|
type="checkbox"/>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<label class="label">{{ $t('task.attributes.priority') }}</label>
|
<label class="label">{{ $t('task.attributes.priority') }}</label>
|
||||||
<div class="control single-value-control">
|
<div class="control single-value-control">
|
||||||
<priority-select
|
<priority-select
|
||||||
:disabled="!filters.usePriority || null"
|
:disabled="!filters.usePriority || undefined"
|
||||||
v-model.number="filters.priority"
|
v-model.number="filters.priority"
|
||||||
@change="setPriority"
|
@change="setPriority"
|
||||||
/>
|
/>
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
<percent-done-select
|
<percent-done-select
|
||||||
v-model.number="filters.percentDone"
|
v-model.number="filters.percentDone"
|
||||||
@change="setPercentDoneFilter"
|
@change="setPercentDoneFilter"
|
||||||
:disabled="!filters.usePercentDone || null"
|
:disabled="!filters.usePercentDone || undefined"
|
||||||
/>
|
/>
|
||||||
<fancycheckbox
|
<fancycheckbox
|
||||||
v-model="filters.usePercentDone"
|
v-model="filters.usePercentDone"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<x-button @click="setApiUrl" :disabled="apiUrl === '' || null">
|
<x-button @click="setApiUrl" :disabled="apiUrl === '' || undefined">
|
||||||
{{ $t('apiConfig.change') }}
|
{{ $t('apiConfig.change') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
v-if="totalPages > 1"
|
v-if="totalPages > 1"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
:disabled="currentPage === 1 || null"
|
:disabled="currentPage === 1 || undefined"
|
||||||
:to="getRouteForPagination(currentPage - 1)"
|
:to="getRouteForPagination(currentPage - 1)"
|
||||||
class="pagination-previous">
|
class="pagination-previous">
|
||||||
{{ $t('misc.previous') }}
|
{{ $t('misc.previous') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
:disabled="currentPage === totalPages || null"
|
:disabled="currentPage === totalPages || undefined"
|
||||||
:to="getRouteForPagination(currentPage + 1)"
|
:to="getRouteForPagination(currentPage + 1)"
|
||||||
class="pagination-next">
|
class="pagination-next">
|
||||||
{{ $t('misc.next') }}
|
{{ $t('misc.next') }}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
:icon="iconName"
|
:icon="iconName"
|
||||||
v-tooltip="tooltipText"
|
v-tooltip="tooltipText"
|
||||||
@click="changeSubscription"
|
@click="changeSubscription"
|
||||||
:disabled="disabled || null"
|
:disabled="disabled || undefined"
|
||||||
>
|
>
|
||||||
{{ buttonText }}
|
{{ buttonText }}
|
||||||
</x-button>
|
</x-button>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input
|
<input
|
||||||
:class="{ disabled: taskService.loading }"
|
:class="{ disabled: taskService.loading }"
|
||||||
:disabled="taskService.loading || null"
|
:disabled="taskService.loading || undefined"
|
||||||
@change="editTaskSubmit()"
|
@change="editTaskSubmit()"
|
||||||
class="input"
|
class="input"
|
||||||
id="tasktext"
|
id="tasktext"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
:disabled="attachmentService.loading || null"
|
:disabled="attachmentService.loading || undefined"
|
||||||
@change="uploadNewAttachment()"
|
@change="uploadNewAttachment()"
|
||||||
id="files"
|
id="files"
|
||||||
multiple
|
multiple
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<flat-pickr
|
<flat-pickr
|
||||||
:class="{ disabled: taskService.loading }"
|
:class="{ disabled: taskService.loading }"
|
||||||
:config="flatPickerConfig"
|
:config="flatPickerConfig"
|
||||||
:disabled="taskService.loading || null"
|
:disabled="taskService.loading || undefined"
|
||||||
class="input"
|
class="input"
|
||||||
v-model="dueDate"
|
v-model="dueDate"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input
|
<input
|
||||||
:class="{ 'disabled': filterService.loading}"
|
:class="{ 'disabled': filterService.loading}"
|
||||||
:disabled="filterService.loading || null"
|
:disabled="filterService.loading || undefined"
|
||||||
@keyup.enter="saveSavedFilter"
|
@keyup.enter="saveSavedFilter"
|
||||||
class="input"
|
class="input"
|
||||||
id="title"
|
id="title"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<input
|
<input
|
||||||
v-model="savedFilter.title"
|
v-model="savedFilter.title"
|
||||||
:class="{ 'disabled': savedFilterService.loading}"
|
:class="{ 'disabled': savedFilterService.loading}"
|
||||||
:disabled="savedFilterService.loading || null"
|
:disabled="savedFilterService.loading || undefined"
|
||||||
class="input"
|
class="input"
|
||||||
id="Title"
|
id="Title"
|
||||||
:placeholder="$t('filters.attributes.titlePlaceholder')"
|
:placeholder="$t('filters.attributes.titlePlaceholder')"
|
||||||
|
|
|
@ -183,7 +183,7 @@
|
||||||
<div class="bucket new-bucket" v-if="canWrite && !loading && buckets.length > 0">
|
<div class="bucket new-bucket" v-if="canWrite && !loading && buckets.length > 0">
|
||||||
<input
|
<input
|
||||||
:class="{'is-loading': loading}"
|
:class="{'is-loading': loading}"
|
||||||
:disabled="loading || null"
|
:disabled="loading || undefined"
|
||||||
@blur="() => showNewBucketInput = false"
|
@blur="() => showNewBucketInput = false"
|
||||||
@keyup.enter="createNewBucket"
|
@keyup.enter="createNewBucket"
|
||||||
@keyup.esc="$event.target.blur()"
|
@keyup.esc="$event.target.blur()"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input
|
<input
|
||||||
:class="{ 'disabled': listService.loading}"
|
:class="{ 'disabled': listService.loading}"
|
||||||
:disabled="listService.loading || null"
|
:disabled="listService.loading || undefined"
|
||||||
@keyup.enter="save"
|
@keyup.enter="save"
|
||||||
class="input"
|
class="input"
|
||||||
id="title"
|
id="title"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
/>
|
/>
|
||||||
<x-button
|
<x-button
|
||||||
:loading="migrationService.loading"
|
:loading="migrationService.loading"
|
||||||
:disabled="migrationService.loading || null"
|
:disabled="migrationService.loading || undefined"
|
||||||
@click="$refs.uploadInput.click()"
|
@click="$refs.uploadInput.click()"
|
||||||
>
|
>
|
||||||
{{ $t('migrate.upload') }}
|
{{ $t('migrate.upload') }}
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
<p>{{ $t('migrate.authorize', {name: migrator.name}) }}</p>
|
<p>{{ $t('migrate.authorize', {name: migrator.name}) }}</p>
|
||||||
<x-button
|
<x-button
|
||||||
:loading="migrationService.loading"
|
:loading="migrationService.loading"
|
||||||
:disabled="migrationService.loading || null"
|
:disabled="migrationService.loading || undefined"
|
||||||
:href="authUrl"
|
:href="authUrl"
|
||||||
>
|
>
|
||||||
{{ $t('migrate.getStarted') }}
|
{{ $t('migrate.getStarted') }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input
|
<input
|
||||||
:class="{ 'disabled': namespaceService.loading}"
|
:class="{ 'disabled': namespaceService.loading}"
|
||||||
:disabled="namespaceService.loading || null"
|
:disabled="namespaceService.loading || undefined"
|
||||||
class="input"
|
class="input"
|
||||||
id="namespacetext"
|
id="namespacetext"
|
||||||
:placeholder="$t('namespace.attributes.titlePlaceholder')"
|
:placeholder="$t('namespace.attributes.titlePlaceholder')"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input
|
<input
|
||||||
:class="{ disabled: teamMemberService.loading }"
|
:class="{ disabled: teamMemberService.loading }"
|
||||||
:disabled="teamMemberService.loading || null"
|
:disabled="teamMemberService.loading || undefined"
|
||||||
class="input"
|
class="input"
|
||||||
id="teamtext"
|
id="teamtext"
|
||||||
:placeholder="$t('team.attributes.namePlaceholder')"
|
:placeholder="$t('team.attributes.namePlaceholder')"
|
||||||
|
|
Loading…
Reference in a new issue