-
+
+
+
@@ -90,7 +80,7 @@
import ListModel from '../../models/list'
import EditTask from './edit-task'
import TaskModel from '../../models/task'
- import priorities from '../../models/priorities'
+ import PriorityLabel from './reusable/priorityLabel'
export default {
data() {
@@ -102,10 +92,10 @@
isTaskEdit: false,
taskEditTask: TaskModel,
newTaskText: '',
- priorities: {},
}
},
components: {
+ PriorityLabel,
EditTask,
},
props: {
@@ -122,7 +112,6 @@
created() {
this.listService = new ListService()
this.taskService = new TaskService()
- this.priorities = priorities
this.taskEditTask = null
this.isTaskEdit = false
},
diff --git a/src/components/tasks/ShowTasks.vue b/src/components/tasks/ShowTasks.vue
index 5e6c6b02..e06e0386 100644
--- a/src/components/tasks/ShowTasks.vue
+++ b/src/components/tasks/ShowTasks.vue
@@ -22,17 +22,7 @@
{{l.text}}
- Due on {{formatUnixDate(l.dueDate)}}
-
-
-
-
- High
- Urgent
- DO NOW
-
-
-
-
+
@@ -43,16 +33,18 @@
import router from '../../router'
import message from '../../message'
import TaskService from '../../services/task'
- import priorities from '../../models/priorities'
+ import PriorityLabel from './reusable/priorityLabel'
export default {
name: "ShowTasks",
+ components: {
+ PriorityLabel
+ },
data() {
return {
tasks: [],
hasUndoneTasks: false,
taskService: TaskService,
- priorities: priorities,
}
},
props: {
diff --git a/src/components/tasks/TaskDetailView.vue b/src/components/tasks/TaskDetailView.vue
new file mode 100644
index 00000000..c104b13e
--- /dev/null
+++ b/src/components/tasks/TaskDetailView.vue
@@ -0,0 +1,381 @@
+
+
+
+
+
+ #{{ task.id }}
+
+
Done
+
+
+
+ {{ namespace.name }} >
+
+ {{ list.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Percent Done
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Related Tasks
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/tasks/edit-task.vue b/src/components/tasks/edit-task.vue
index 0bbb535d..33a5ed5e 100644
--- a/src/components/tasks/edit-task.vue
+++ b/src/components/tasks/edit-task.vue
@@ -17,23 +17,7 @@