Remove title length restrictions
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2020-06-17 19:10:48 +02:00
parent b32976043f
commit 35d52c3404
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
6 changed files with 21 additions and 21 deletions

View File

@ -17,7 +17,7 @@
@keyup.enter="newList()"/>
</p>
<p class="control">
<button class="button is-success noshadow" @click="newList()" :disabled="list.title.length < 3">
<button class="button is-success noshadow" @click="newList()" :disabled="list.title === ''">
<span class="icon is-small">
<icon icon="plus"/>
</span>
@ -25,8 +25,8 @@
</button>
</p>
</div>
<p class="help is-danger" v-if="showError && list.title.length < 3">
Please specify at least three characters.
<p class="help is-danger" v-if="showError && list.title === ''">
Please specify a title.
</p>
</div>
</template>
@ -53,7 +53,7 @@
},
methods: {
newList() {
if (this.list.title.length < 3) {
if (this.list.title === '') {
this.showError = true
return
}

View File

@ -124,8 +124,8 @@
:class="{'is-loading': taskService.loading}"
/>
</div>
<p class="help is-danger" v-if="newTaskError[bucket.id] && newTaskText.length < 3">
Please specify at least three characters.
<p class="help is-danger" v-if="newTaskError[bucket.id] && newTaskText === ''">
Please specify a title.
</p>
</div>
<a
@ -351,7 +351,7 @@
},
addTaskToBucket(bucketId) {
if (this.newTaskText.length < 3) {
if (this.newTaskText === '') {
this.$set(this.newTaskError, bucketId, true)
return
}

View File

@ -72,8 +72,8 @@
</button>
</p>
</div>
<p class="help is-danger" v-if="showError && newTaskText.length < 3">
Please specify at least three characters.
<p class="help is-danger" v-if="showError && newTaskText === ''">
Please specify a list title.
</p>
</div>
@ -197,7 +197,7 @@
this.loadTasks(page, search)
},
addTask() {
if (this.newTaskText.length < 3) {
if (this.newTaskText === '') {
this.showError = true
return
}

View File

@ -17,7 +17,7 @@
placeholder="The namespace's name goes here..."/>
</p>
<p class="control">
<button class="button is-success noshadow" @click="newNamespace()" :disabled="namespace.title.length <= 5">
<button class="button is-success noshadow" @click="newNamespace()" :disabled="namespace.title === ''">
<span class="icon is-small">
<icon icon="plus"/>
</span>
@ -25,8 +25,8 @@
</button>
</p>
</div>
<p class="help is-danger" v-if="showError && namespace.title.length <= 5">
Please specify at least five characters.
<p class="help is-danger" v-if="showError && namespace.title === ''">
Please specify a title.
</p>
<p class="small" v-tooltip.bottom="'A namespace is a collection of lists you can share and use to organize your lists with.<br/>In fact, every list belongs to a namepace.'">
What's a namespace?</p>
@ -55,7 +55,7 @@
},
methods: {
newNamespace() {
if (this.namespace.title.length <= 4) {
if (this.namespace.title === '') {
this.showError = true
return
}

View File

@ -23,8 +23,8 @@
v-model="team.name"/>
</div>
</div>
<p class="help is-danger" v-if="showError && team.name.length <= 5">
Please specify at least five characters.
<p class="help is-danger" v-if="showError && team.name === ''">
Please specify a name.
</p>
<div class="field">
<label class="label" for="teamdescription">Description</label>
@ -240,7 +240,7 @@
})
},
submit() {
if (this.team.name.length <= 4) {
if (this.team.name === '') {
this.showError = true
return
}

View File

@ -24,8 +24,8 @@
</button>
</p>
</div>
<p class="help is-danger" v-if="showError && team.name.length <= 5">
Please specify at least five characters.
<p class="help is-danger" v-if="showError && team.name === ''">
Please specify a name.
</p>
</form>
</div>
@ -38,7 +38,7 @@
import {IS_FULLPAGE} from '../../store/mutation-types'
export default {
name: "NewTeam",
name: 'NewTeam',
data() {
return {
teamService: TeamService,
@ -54,7 +54,7 @@
methods: {
newTeam() {
if (this.team.name.length <= 4) {
if (this.team.name === '') {
this.showError = true
return
}