Ensure consistent naming of title fields (#134)
Merge branch 'master' into fix/title-fields Change task text field to title Change namespace name field to title Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/134
This commit is contained in:
parent
c4b92a8f52
commit
d7b4b2189a
11 changed files with 66 additions and 38 deletions
|
|
@ -50,7 +50,7 @@
|
|||
'has-high-priority': t.priority >= priorities.HIGH,
|
||||
'has-not-so-high-priority': t.priority === priorities.HIGH,
|
||||
'has-super-high-priority': t.priority === priorities.DO_NOW
|
||||
}">{{t.text}}</span>
|
||||
}">{{t.title}}</span>
|
||||
<priority-label :priority="t.priority"/>
|
||||
<!-- using the key here forces vue to use the updated version model and not the response returned by the api -->
|
||||
<a @click="editTask(theTasks[k])" class="edit-toggle">
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
@clicked="setTaskDragged(t)"
|
||||
v-tooltip="'This task has no dates set.'"
|
||||
>
|
||||
<span>{{t.text}}</span>
|
||||
<span>{{t.title}}</span>
|
||||
</VueDragResize>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -366,7 +366,7 @@
|
|||
if (!this.newTaskFieldActive) {
|
||||
return
|
||||
}
|
||||
let task = new TaskModel({text: this.newTaskTitle, listId: this.listId})
|
||||
let task = new TaskModel({title: this.newTaskTitle, listId: this.listId})
|
||||
this.taskService.create(task)
|
||||
.then(r => {
|
||||
this.tasksWithoutDates.push(this.addGantAttributes(r))
|
||||
|
|
|
|||
Reference in a new issue