From 84c380c8c44af88d14cd1f876816ec264efefe0e Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:05:55 +0530 Subject: [PATCH] feat: Replace SLA `validationMixin` within the component (#9804) # Pull Request Template ## Description This PR will completely remove the SLA `validationMixin` and be used in the component as it is with a name change. Fixes https://linear.app/chatwoot/issue/CW-3456/rewrite-sla-validationmixin-mixin-to-a-composable ## Type of change - [x] New feature (non-breaking change which adds functionality) ## How Has This Been Tested? Take a look at these components 1. `dashboard/routes/dashboard/settings/sla/AddSLA.vue` **(Not used)** 2. `dashboard/routes/dashboard/settings/sla/SlaForm.vue` 3. `dashboard/routes/dashboard/settings/sla/SlaTimeInput.vue` ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- .../routes/dashboard/settings/sla/AddSLA.vue | 7 +- .../routes/dashboard/settings/sla/SlaForm.vue | 15 ++- .../dashboard/settings/sla/SlaTimeInput.vue | 17 ++- .../sla/specs/validationMixin.spec.js | 106 ------------------ .../dashboard/settings/sla/validationMixin.js | 26 ----- 5 files changed, 28 insertions(+), 143 deletions(-) delete mode 100644 app/javascript/dashboard/routes/dashboard/settings/sla/specs/validationMixin.spec.js delete mode 100644 app/javascript/dashboard/routes/dashboard/settings/sla/validationMixin.js diff --git a/app/javascript/dashboard/routes/dashboard/settings/sla/AddSLA.vue b/app/javascript/dashboard/routes/dashboard/settings/sla/AddSLA.vue index 772ec4bcd..44c95a5fe 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/sla/AddSLA.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/sla/AddSLA.vue @@ -1,5 +1,5 @@