From 35d52c340458ec3a950dfd5f76c7328a90cac1ff Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 17 Jun 2020 19:10:48 +0200 Subject: [PATCH] Remove title length restrictions --- src/components/lists/NewList.vue | 8 ++++---- src/components/lists/views/Kanban.vue | 6 +++--- src/components/lists/views/List.vue | 6 +++--- src/components/namespaces/NewNamespace.vue | 8 ++++---- src/components/teams/EditTeam.vue | 6 +++--- src/components/teams/NewTeam.vue | 8 ++++---- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/components/lists/NewList.vue b/src/components/lists/NewList.vue index c0537ddf..6935dacb 100644 --- a/src/components/lists/NewList.vue +++ b/src/components/lists/NewList.vue @@ -17,7 +17,7 @@ @keyup.enter="newList()"/>

-

-

- Please specify at least three characters. +

+ Please specify a title.

@@ -53,7 +53,7 @@ }, methods: { newList() { - if (this.list.title.length < 3) { + if (this.list.title === '') { this.showError = true return } diff --git a/src/components/lists/views/Kanban.vue b/src/components/lists/views/Kanban.vue index 406cfb91..ebd26b5f 100644 --- a/src/components/lists/views/Kanban.vue +++ b/src/components/lists/views/Kanban.vue @@ -124,8 +124,8 @@ :class="{'is-loading': taskService.loading}" /> -

- Please specify at least three characters. +

+ Please specify a title.

-

- Please specify at least three characters. +

+ Please specify a list title.

@@ -197,7 +197,7 @@ this.loadTasks(page, search) }, addTask() { - if (this.newTaskText.length < 3) { + if (this.newTaskText === '') { this.showError = true return } diff --git a/src/components/namespaces/NewNamespace.vue b/src/components/namespaces/NewNamespace.vue index 5290bc93..37a1da93 100644 --- a/src/components/namespaces/NewNamespace.vue +++ b/src/components/namespaces/NewNamespace.vue @@ -17,7 +17,7 @@ placeholder="The namespace's name goes here..."/>

-

-

- Please specify at least five characters. +

+ Please specify a title.

What's a namespace?

@@ -55,7 +55,7 @@ }, methods: { newNamespace() { - if (this.namespace.title.length <= 4) { + if (this.namespace.title === '') { this.showError = true return } diff --git a/src/components/teams/EditTeam.vue b/src/components/teams/EditTeam.vue index 2c00b9bb..a6f0d486 100644 --- a/src/components/teams/EditTeam.vue +++ b/src/components/teams/EditTeam.vue @@ -23,8 +23,8 @@ v-model="team.name"/> -

- Please specify at least five characters. +

+ Please specify a name.

@@ -240,7 +240,7 @@ }) }, submit() { - if (this.team.name.length <= 4) { + if (this.team.name === '') { this.showError = true return } diff --git a/src/components/teams/NewTeam.vue b/src/components/teams/NewTeam.vue index 9e161f8c..5f18af56 100644 --- a/src/components/teams/NewTeam.vue +++ b/src/components/teams/NewTeam.vue @@ -24,8 +24,8 @@

-

- Please specify at least five characters. +

+ Please specify a name.

@@ -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 }