diff --git a/app/javascript/dashboard/i18n/locale/en/automation.json b/app/javascript/dashboard/i18n/locale/en/automation.json new file mode 100644 index 000000000..c3614a990 --- /dev/null +++ b/app/javascript/dashboard/i18n/locale/en/automation.json @@ -0,0 +1,6 @@ +{ + "AUTOMATION": { + "HEADER": "Automation", + "HEADER_BTN_TXT": "Add Automation Rule" + } +} diff --git a/app/javascript/dashboard/i18n/locale/en/index.js b/app/javascript/dashboard/i18n/locale/en/index.js index bfcef683a..9e81e9e76 100644 --- a/app/javascript/dashboard/i18n/locale/en/index.js +++ b/app/javascript/dashboard/i18n/locale/en/index.js @@ -18,6 +18,7 @@ import { default as _setNewPassword } from './setNewPassword.json'; import { default as _settings } from './settings.json'; import { default as _signup } from './signup.json'; import { default as _teamsSettings } from './teamsSettings.json'; +import { default as _automation } from './automation.json'; export default { ..._agentMgmt, @@ -40,4 +41,5 @@ export default { ..._settings, ..._signup, ..._teamsSettings, + ..._automation, }; diff --git a/app/javascript/dashboard/i18n/locale/en/settings.json b/app/javascript/dashboard/i18n/locale/en/settings.json index 837184245..5c8dcbf98 100644 --- a/app/javascript/dashboard/i18n/locale/en/settings.json +++ b/app/javascript/dashboard/i18n/locale/en/settings.json @@ -140,6 +140,7 @@ "APPLICATIONS": "Applications", "LABELS": "Labels", "CUSTOM_ATTRIBUTES": "Custom Attributes", + "AUTOMATION": "Automation", "TEAMS": "Teams", "ALL_CONTACTS": "All Contacts", "TAGGED_WITH": "Tagged with", diff --git a/app/javascript/dashboard/i18n/sidebarItems/settings.js b/app/javascript/dashboard/i18n/sidebarItems/settings.js index c2e7b8f0b..23f59bd7b 100644 --- a/app/javascript/dashboard/i18n/sidebarItems/settings.js +++ b/app/javascript/dashboard/i18n/sidebarItems/settings.js @@ -28,6 +28,7 @@ const settings = accountId => ({ 'settings_teams_edit', 'settings_teams_edit_members', 'settings_teams_edit_finish', + 'automation_list', ], menuItems: { back: { @@ -74,6 +75,13 @@ const settings = accountId => ({ ), toStateName: 'attributes_list', }, + automation: { + icon: 'ion-wrench', + label: 'AUTOMATION', + hasSubMenu: false, + toState: frontendURL(`accounts/${accountId}/settings/automation/list`), + toStateName: 'automation_list', + }, cannedResponses: { icon: 'ion-chatbox-working', label: 'CANNED_RESPONSES', diff --git a/app/javascript/dashboard/routes/dashboard/settings/automation/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/automation/Index.vue new file mode 100644 index 000000000..dfade7e42 --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/settings/automation/Index.vue @@ -0,0 +1,12 @@ + +