From b1efcde495179ec4c3fa5eaa7bbe78e7872eb9cc Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Fri, 8 Apr 2022 18:25:08 +0530 Subject: [PATCH] feat: Remove duplicate Switch Component (#4427) --- .../components/buttons/ToggleButton.vue | 66 ------------- .../dashboard/components/ui/Switch.vue | 98 +++++++++++-------- .../dashboard/settings/automation/Index.vue | 9 +- .../reports/components/FilterSelector.vue | 4 +- .../reports/components/ReportFilters.vue | 8 +- 5 files changed, 67 insertions(+), 118 deletions(-) delete mode 100644 app/javascript/dashboard/components/buttons/ToggleButton.vue diff --git a/app/javascript/dashboard/components/buttons/ToggleButton.vue b/app/javascript/dashboard/components/buttons/ToggleButton.vue deleted file mode 100644 index 8d80ccd94..000000000 --- a/app/javascript/dashboard/components/buttons/ToggleButton.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - - diff --git a/app/javascript/dashboard/components/ui/Switch.vue b/app/javascript/dashboard/components/ui/Switch.vue index 98755a91b..b0bc32881 100644 --- a/app/javascript/dashboard/components/ui/Switch.vue +++ b/app/javascript/dashboard/components/ui/Switch.vue @@ -1,54 +1,66 @@ + diff --git a/app/javascript/dashboard/routes/dashboard/settings/automation/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/automation/Index.vue index 5157c4dfc..f028933cb 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/automation/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/automation/Index.vue @@ -34,9 +34,9 @@ {{ automation.name }} {{ automation.description }} - {{ readableTime(automation.created_on) }} @@ -131,12 +131,11 @@ import AddAutomationRule from './AddAutomationRule.vue'; import EditAutomationRule from './EditAutomationRule.vue'; import alertMixin from 'shared/mixins/alertMixin'; import timeMixin from 'dashboard/mixins/time'; -import ToggleButton from 'dashboard/components/buttons/ToggleButton'; + export default { components: { AddAutomationRule, EditAutomationRule, - ToggleButton, }, mixins: [alertMixin, timeMixin], data() { diff --git a/app/javascript/dashboard/routes/dashboard/settings/reports/components/FilterSelector.vue b/app/javascript/dashboard/routes/dashboard/settings/reports/components/FilterSelector.vue index 87a422be0..cadf4078e 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/reports/components/FilterSelector.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/reports/components/FilterSelector.vue @@ -62,7 +62,9 @@ />
- {{ $t('REPORT.BUSINESS_HOURS') }} + + {{ $t('REPORT.BUSINESS_HOURS') }} + diff --git a/app/javascript/dashboard/routes/dashboard/settings/reports/components/ReportFilters.vue b/app/javascript/dashboard/routes/dashboard/settings/reports/components/ReportFilters.vue index 89d1fd4a9..0bfeae8a1 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/reports/components/ReportFilters.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/reports/components/ReportFilters.vue @@ -146,9 +146,11 @@ />
- {{ $t('REPORT.BUSINESS_HOURS') }} - - + + {{ $t('REPORT.BUSINESS_HOURS') }} + + +