From 77568f02f55deada3e04ec08f86e8e525f04724a Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Wed, 20 Feb 2019 17:54:48 +0100 Subject: [PATCH] fix: DRAG Only possible with Button component or in edit description component. --- src/components/todos/SingleTodo/SingleTodo.ts | 2 +- .../todos/SingleTodo/SingleTodo.vue | 4 +- src/components/todos/todo/todo.ts | 121 +++++++++++++----- src/components/todos/todo/todo.vue | 47 ++++--- src/statics/i18n.js | 9 +- src/store/Modules/Todos.ts | 9 +- 6 files changed, 132 insertions(+), 60 deletions(-) diff --git a/src/components/todos/SingleTodo/SingleTodo.ts b/src/components/todos/SingleTodo/SingleTodo.ts index 0ba02e8..4794947 100644 --- a/src/components/todos/SingleTodo/SingleTodo.ts +++ b/src/components/todos/SingleTodo/SingleTodo.ts @@ -94,7 +94,7 @@ export default class SingleTodo extends Vue { updateClasses() { // this.classCompleted = 'completed-item' this.classCompleted = 'completed-item-popover' - this.classDescr = 'flex-item div_descr show' + this.classDescr = 'flex-item div_descr show donotdrag' this.classDescrEdit = 'flex-item div_descr_edit' if (!this.isTodo()) { this.classDescr += ' titleLista-item' diff --git a/src/components/todos/SingleTodo/SingleTodo.vue b/src/components/todos/SingleTodo/SingleTodo.vue index 62b2f6c..b6d8b75 100644 --- a/src/components/todos/SingleTodo/SingleTodo.vue +++ b/src/components/todos/SingleTodo/SingleTodo.vue @@ -1,6 +1,6 @@