fix: breaking attribute coercion behavior

see: https://v3.vuejs.org/guide/migration/attribute-coercion.html#overview
This commit is contained in:
Dominik Pschenitschni 2021-08-20 17:00:03 +02:00 committed by kolaente
parent fe27a432c7
commit 697ea12c8e
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
14 changed files with 18 additions and 18 deletions

View file

@ -9,9 +9,9 @@
'is-text is-inverted has-no-shadow underline-none': 'is-text is-inverted has-no-shadow underline-none':
type === 'tertary', type === 'tertary',
}" }"
:disabled="disabled" :disabled="disabled || null"
@click="click" @click="click"
:href="href !== '' ? href : false" :href="href !== '' ? href : null"
> >
<icon :icon="icon" v-if="showIconOnly"/> <icon :icon="icon" v-if="showIconOnly"/>
<span class="icon is-small" v-else-if="icon !== ''"> <span class="icon is-small" v-else-if="icon !== ''">

View file

@ -3,7 +3,7 @@
<div class="field is-grouped"> <div class="field is-grouped">
<p class="control has-icons-left is-expanded"> <p class="control has-icons-left is-expanded">
<input <input
:disabled="taskService.loading" :disabled="taskService.loading || null"
@keyup.enter="addTask()" @keyup.enter="addTask()"
class="input" class="input"
:placeholder="$t('list.list.addPlaceholder')" :placeholder="$t('list.list.addPlaceholder')"
@ -19,7 +19,7 @@
</p> </p>
<p class="control"> <p class="control">
<x-button <x-button
:disabled="newTaskTitle === '' || taskService.loading" :disabled="newTaskTitle === '' || taskService.loading || null"
@click="addTask()" @click="addTask()"
icon="plus" icon="plus"
:loading="taskService.loading" :loading="taskService.loading"

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
<template> <template>
<div class="select"> <div class="select">
<select :disabled="disabled" @change="updateData" v-model.number="percentDone"> <select :disabled="disabled || null" @change="updateData" v-model.number="percentDone">
<option value="0">0%</option> <option value="0">0%</option>
<option value="0.1">10%</option> <option value="0.1">10%</option>
<option value="0.2">20%</option> <option value="0.2">20%</option>

View file

@ -1,6 +1,6 @@
<template> <template>
<div class="select"> <div class="select">
<select :disabled="disabled" @change="updateData" v-model="priority"> <select :disabled="disabled || null" @change="updateData" v-model="priority">
<option :value="priorities.UNSET">{{ $t('task.priority.unset') }}</option> <option :value="priorities.UNSET">{{ $t('task.priority.unset') }}</option>
<option :value="priorities.LOW">{{ $t('task.priority.low') }}</option> <option :value="priorities.LOW">{{ $t('task.priority.low') }}</option>
<option :value="priorities.MEDIUM">{{ $t('task.priority.medium') }}</option> <option :value="priorities.MEDIUM">{{ $t('task.priority.medium') }}</option>

View file

@ -26,7 +26,7 @@
<div class="field has-addons is-fullwidth"> <div class="field has-addons is-fullwidth">
<div class="control"> <div class="control">
<input <input
:disabled="disabled" :disabled="disabled || null"
@change="updateData" @change="updateData"
class="input" class="input"
:placeholder="$t('task.repeat.specifyAmount')" :placeholder="$t('task.repeat.specifyAmount')"
@ -36,7 +36,7 @@
</div> </div>
<div class="control"> <div class="control">
<div class="select"> <div class="select">
<select :disabled="disabled" @change="updateData" v-model="repeatAfter.type"> <select :disabled="disabled || null" @change="updateData" v-model="repeatAfter.type">
<option value="hours">{{ $t('task.repeat.hours') }}</option> <option value="hours">{{ $t('task.repeat.hours') }}</option>
<option value="days">{{ $t('task.repeat.days') }}</option> <option value="days">{{ $t('task.repeat.days') }}</option>
<option value="weeks">{{ $t('task.repeat.weeks') }}</option> <option value="weeks">{{ $t('task.repeat.weeks') }}</option>

View file

@ -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" :disabled="savedFilterService.loading || null"
class="input" class="input"
id="Title" id="Title"
:placeholder="$t('filters.attributes.titlePlaceholder')" :placeholder="$t('filters.attributes.titlePlaceholder')"

View file

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

View file

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

View file

@ -153,7 +153,7 @@
<div class="control" :class="{'is-loading': loading}"> <div class="control" :class="{'is-loading': loading}">
<input <input
class="input" class="input"
:disabled="loading" :disabled="loading || null"
@focusout="toggleShowNewTaskInput(bucket.id)" @focusout="toggleShowNewTaskInput(bucket.id)"
@keyup.enter="addTaskToBucket(bucket.id)" @keyup.enter="addTaskToBucket(bucket.id)"
@keyup.esc="toggleShowNewTaskInput(bucket.id)" @keyup.esc="toggleShowNewTaskInput(bucket.id)"
@ -187,7 +187,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" :disabled="loading || null"
@focusout="() => showNewBucketInput = false" @focusout="() => showNewBucketInput = false"
@keyup.enter="createNewBucket" @keyup.enter="createNewBucket"
@keyup.esc="() => showNewBucketInput = false" @keyup.esc="() => showNewBucketInput = false"

View file

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

View file

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