-
-
+
+
+
+ {{ task.title }}
+
+
+
+
+ {{ getUser(task.assigned_to).full_name }}
+
+
+
+
+
+
+
+ {{ dateFormat(task.due_date, 'D MMM') }}
+
+
+
+
+
+
+
+
-
- {{ task.title }}
+
+
+
+
+
@@ -543,6 +581,8 @@ import PhoneIcon from '@/components/Icons/PhoneIcon.vue'
import NoteIcon from '@/components/Icons/NoteIcon.vue'
import TaskIcon from '@/components/Icons/TaskIcon.vue'
import DurationIcon from '@/components/Icons/DurationIcon.vue'
+import CalendarIcon from '@/components/Icons/CalendarIcon.vue'
+import TaskStatusIcon from '@/components/Icons/TaskStatusIcon.vue'
import PlayIcon from '@/components/Icons/PlayIcon.vue'
import LeadsIcon from '@/components/Icons/LeadsIcon.vue'
import DealsIcon from '@/components/Icons/DealsIcon.vue'
@@ -559,6 +599,7 @@ import {
dateTooltipFormat,
secondsToDuration,
startCase,
+ taskStatusOptions,
} from '@/utils'
import { usersStore } from '@/stores/users'
import { contactsStore } from '@/stores/contacts'
@@ -572,6 +613,7 @@ import {
createResource,
createListResource,
call,
+ Badge,
} from 'frappe-ui'
import { ref, computed, h, defineModel, markRaw, watch } from 'vue'
@@ -837,6 +879,17 @@ function showTask(t) {
showTaskModal.value = true
}
+function updateTaskStatus(status, task) {
+ call('frappe.client.set_value', {
+ doctype: 'CRM Task',
+ name: task.name,
+ fieldname: 'status',
+ value: status,
+ }).then(() => {
+ tasks.reload()
+ })
+}
+
watch([reload, reload_email], ([reload_value, reload_email_value]) => {
if (reload_value || reload_email_value) {
versions.reload()
diff --git a/frontend/src/components/Icons/CalendarIcon.vue b/frontend/src/components/Icons/CalendarIcon.vue
new file mode 100644
index 00000000..3d8f834c
--- /dev/null
+++ b/frontend/src/components/Icons/CalendarIcon.vue
@@ -0,0 +1,16 @@
+
+
+
diff --git a/frontend/src/components/Icons/DotIcon.vue b/frontend/src/components/Icons/DotIcon.vue
index 1c3b0d9a..183ec7ae 100644
--- a/frontend/src/components/Icons/DotIcon.vue
+++ b/frontend/src/components/Icons/DotIcon.vue
@@ -6,6 +6,14 @@
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-
+
+
diff --git a/frontend/src/components/TaskModal.vue b/frontend/src/components/TaskModal.vue
index 8c8da2d5..7be749c9 100644
--- a/frontend/src/components/TaskModal.vue
+++ b/frontend/src/components/TaskModal.vue
@@ -37,7 +37,7 @@
/>
-
+