Don't warn if a new list name is used by the list itself

This commit is contained in:
Raimund Schlüßler 2018-11-15 09:59:14 +01:00
parent 82aea83d75
commit 3d0f1d36d9
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -93,7 +93,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
v-model="newCalendarName"
class="edit"
type="text"
@keyup="checkName($event, 'list_' + calendar.id)">
@keyup="checkName($event, calendar.id)">
<input :title="t('tasks', 'Cancel')"
type="cancel"
value=""
@ -130,7 +130,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<form>
<input v-tooltip="{
content: tooltipMessage,
show: showTooltip('new'),
show: showTooltip('list_'),
trigger: 'manual'
}"
id="newListInput"
@ -138,7 +138,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
v-model="newCalendarName"
class="edit"
type="text"
@keyup="checkName($event, 'new')">
@keyup="checkName($event, '')">
<input :title="t('tasks', 'Cancel')"
type="cancel"
value=""
@ -298,7 +298,7 @@ export default {
var check = this.isNameAllowed(this.newCalendarName, id)
this.tooltipMessage = check.msg
if (!check.allowed) {
this.tooltipTarget = id
this.tooltipTarget = 'list_' + id
this.nameError = true
} else {
this.tooltipTarget = ''