diff --git a/web/src/components/NewTaskDialog.vue b/web/src/components/NewTaskDialog.vue
new file mode 100644
index 000000000..4066fe5ed
--- /dev/null
+++ b/web/src/components/NewTaskDialog.vue
@@ -0,0 +1,76 @@
+
+
+
+ {{ TEMPLATE_TYPE_ICONS[templateType] }}
+ {{ templateAlias }}
+ mdi-chevron-right
+ New Task
+
+
+
+
+
+
+
+
diff --git a/web/src/views/project/TemplateView.vue b/web/src/views/project/TemplateView.vue
index 5f514e763..28fea64c2 100644
--- a/web/src/views/project/TemplateView.vue
+++ b/web/src/views/project/TemplateView.vue
@@ -7,6 +7,14 @@
+
+
Task Templates
+ >
+ Task Templates
mdi-chevron-right
{{ item.name }}
@@ -76,6 +85,10 @@
+
+ {{ TEMPLATE_TYPE_ACTION_TITLES[item.type] }}
+
+
-
-
- {{ TEMPLATE_TYPE_ICONS[templateType] }}
- {{ templateAlias }}
- mdi-chevron-right
- New Task
-
-
-
-
-
-
+ :project-id="projectId"
+ :template-id="itemId"
+ :template-alias="templateAlias"
+ :template-type="templateType"
+ />
@@ -245,19 +228,25 @@ import ItemListPageBase from '@/components/ItemListPageBase';
import TemplateForm from '@/components/TemplateForm.vue';
import TaskLink from '@/components/TaskLink.vue';
import axios from 'axios';
-import TaskForm from '@/components/TaskForm.vue';
import EditViewsForm from '@/components/EditViewsForm.vue';
import TableSettingsSheet from '@/components/TableSettingsSheet.vue';
import TaskList from '@/components/TaskList.vue';
import EventBus from '@/event-bus';
import TaskStatus from '@/components/TaskStatus.vue';
import socket from '@/socket';
+import NewTaskDialog from '@/components/NewTaskDialog.vue';
import { TEMPLATE_TYPE_ACTION_TITLES, TEMPLATE_TYPE_ICONS } from '../../lib/constants';
export default {
components: {
- TemplateForm, TaskForm, TableSettingsSheet, TaskStatus, TaskLink, TaskList, EditViewsForm,
+ TemplateForm,
+ TableSettingsSheet,
+ TaskStatus,
+ TaskLink,
+ TaskList,
+ EditViewsForm,
+ NewTaskDialog,
},
mixins: [ItemListPageBase],
async created() {
@@ -383,13 +372,6 @@ export default {
});
},
- onTaskCreated(e) {
- EventBus.$emit('i-show-task', {
- taskId: e.item.id,
- });
- this.itemId = null;
- },
-
showTaskLog(taskId) {
EventBus.$emit('i-show-task', {
taskId,