Remove title length restrictions
This commit is contained in:
parent
b32976043f
commit
35d52c3404
6 changed files with 21 additions and 21 deletions
|
@ -17,7 +17,7 @@
|
||||||
@keyup.enter="newList()"/>
|
@keyup.enter="newList()"/>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<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">
|
<span class="icon is-small">
|
||||||
<icon icon="plus"/>
|
<icon icon="plus"/>
|
||||||
</span>
|
</span>
|
||||||
|
@ -25,8 +25,8 @@
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="help is-danger" v-if="showError && list.title.length < 3">
|
<p class="help is-danger" v-if="showError && list.title === ''">
|
||||||
Please specify at least three characters.
|
Please specify a title.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
newList() {
|
newList() {
|
||||||
if (this.list.title.length < 3) {
|
if (this.list.title === '') {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,8 +124,8 @@
|
||||||
:class="{'is-loading': taskService.loading}"
|
:class="{'is-loading': taskService.loading}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p class="help is-danger" v-if="newTaskError[bucket.id] && newTaskText.length < 3">
|
<p class="help is-danger" v-if="newTaskError[bucket.id] && newTaskText === ''">
|
||||||
Please specify at least three characters.
|
Please specify a title.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
|
@ -351,7 +351,7 @@
|
||||||
},
|
},
|
||||||
addTaskToBucket(bucketId) {
|
addTaskToBucket(bucketId) {
|
||||||
|
|
||||||
if (this.newTaskText.length < 3) {
|
if (this.newTaskText === '') {
|
||||||
this.$set(this.newTaskError, bucketId, true)
|
this.$set(this.newTaskError, bucketId, true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,8 +72,8 @@
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="help is-danger" v-if="showError && newTaskText.length < 3">
|
<p class="help is-danger" v-if="showError && newTaskText === ''">
|
||||||
Please specify at least three characters.
|
Please specify a list title.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@
|
||||||
this.loadTasks(page, search)
|
this.loadTasks(page, search)
|
||||||
},
|
},
|
||||||
addTask() {
|
addTask() {
|
||||||
if (this.newTaskText.length < 3) {
|
if (this.newTaskText === '') {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
placeholder="The namespace's name goes here..."/>
|
placeholder="The namespace's name goes here..."/>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<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">
|
<span class="icon is-small">
|
||||||
<icon icon="plus"/>
|
<icon icon="plus"/>
|
||||||
</span>
|
</span>
|
||||||
|
@ -25,8 +25,8 @@
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="help is-danger" v-if="showError && namespace.title.length <= 5">
|
<p class="help is-danger" v-if="showError && namespace.title === ''">
|
||||||
Please specify at least five characters.
|
Please specify a title.
|
||||||
</p>
|
</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.'">
|
<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>
|
What's a namespace?</p>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
newNamespace() {
|
newNamespace() {
|
||||||
if (this.namespace.title.length <= 4) {
|
if (this.namespace.title === '') {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
v-model="team.name"/>
|
v-model="team.name"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help is-danger" v-if="showError && team.name.length <= 5">
|
<p class="help is-danger" v-if="showError && team.name === ''">
|
||||||
Please specify at least five characters.
|
Please specify a name.
|
||||||
</p>
|
</p>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="teamdescription">Description</label>
|
<label class="label" for="teamdescription">Description</label>
|
||||||
|
@ -240,7 +240,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if (this.team.name.length <= 4) {
|
if (this.team.name === '') {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="help is-danger" v-if="showError && team.name.length <= 5">
|
<p class="help is-danger" v-if="showError && team.name === ''">
|
||||||
Please specify at least five characters.
|
Please specify a name.
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
import {IS_FULLPAGE} from '../../store/mutation-types'
|
import {IS_FULLPAGE} from '../../store/mutation-types'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "NewTeam",
|
name: 'NewTeam',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
teamService: TeamService,
|
teamService: TeamService,
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
newTeam() {
|
newTeam() {
|
||||||
|
|
||||||
if (this.team.name.length <= 4) {
|
if (this.team.name === '') {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue