From 273c98a76792ab8428d267aba300e0add4d184d4 Mon Sep 17 00:00:00 2001 From: Sabu Siyad Date: Tue, 17 Oct 2023 14:37:34 +0530 Subject: [PATCH 1/4] fix(ux): allow empty sla --- desk/src/pages/ticket/TicketDetails.vue | 43 +++++++++++-------- .../helpdesk/doctype/hd_ticket/hd_ticket.json | 3 +- .../helpdesk/doctype/hd_ticket/hd_ticket.py | 12 +++++- 3 files changed, 36 insertions(+), 22 deletions(-) diff --git a/desk/src/pages/ticket/TicketDetails.vue b/desk/src/pages/ticket/TicketDetails.vue index 3c99c1d5d..510fb8097 100644 --- a/desk/src/pages/ticket/TicketDetails.vue +++ b/desk/src/pages/ticket/TicketDetails.vue @@ -16,26 +16,33 @@ {{ data.customer }} -
- First response - +
+
First response
+
{{ dayjs(data.first_responded_on || data.response_by).short() }} +
+ + + + - - -
Date: Tue, 17 Oct 2023 14:42:28 +0530 Subject: [PATCH 2/4] fix(ux): allow deleting default sla --- .../hd_service_level_agreement/hd_service_level_agreement.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py b/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py index 17284bcc7..88b17b50c 100644 --- a/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py +++ b/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py @@ -116,11 +116,6 @@ def get_hd_service_level_agreement_priority(self, priority): } ) - def on_trash(self): - if self.service_level == "Default": - text = _("The Default HD Service Level Agreement cannot be deleted") - frappe.throw(text, frappe.PermissionError) - def apply(self, doc: Document): self.handle_new(doc) self.handle_status(doc) From 079036fd9bca3af0edd79c5a2f624ef69bab212b Mon Sep 17 00:00:00 2001 From: Sabu Siyad Date: Tue, 17 Oct 2023 16:22:07 +0530 Subject: [PATCH 3/4] fix: agreement status: remove default --- desk/src/pages/tickets/TicketsAgentList.vue | 1 + helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/desk/src/pages/tickets/TicketsAgentList.vue b/desk/src/pages/tickets/TicketsAgentList.vue index 3d59ecc14..6ae262406 100644 --- a/desk/src/pages/tickets/TicketsAgentList.vue +++ b/desk/src/pages/tickets/TicketsAgentList.vue @@ -34,6 +34,7 @@