diff --git a/.eslintrc.js b/.eslintrc.js index 8bac6dcea..fc3bf8abd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -173,6 +173,15 @@ module.exports = { useAttrs: 'attrs', }, ], + 'vue/no-unused-properties': [ + 'error', + { + groups: ['props'], + deepData: false, + ignorePublicMembers: false, + unreferencedOptions: [], + }, + ], 'vue/max-attributes-per-line': [ 'error', { diff --git a/app/javascript/dashboard/App.vue b/app/javascript/dashboard/App.vue index 6604f7cc5..efb89f489 100644 --- a/app/javascript/dashboard/App.vue +++ b/app/javascript/dashboard/App.vue @@ -47,7 +47,6 @@ export default { ...mapGetters({ getAccount: 'accounts/getAccount', currentUser: 'getCurrentUser', - globalConfig: 'globalConfig/get', authUIFlags: 'getAuthUIFlags', accountUIFlags: 'accounts/getUIFlags', currentAccountId: 'getCurrentAccountId', diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index 47dc79bb7..22d5278a5 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -131,20 +131,16 @@ export default { }, computed: { ...mapGetters({ - currentChat: 'getSelectedChat', currentUser: 'getCurrentUser', chatLists: 'getAllConversations', mineChatsList: 'getMineChats', allChatList: 'getAllStatusChats', - chatListFilters: 'getChatListFilters', unAssignedChatsList: 'getUnAssignedChats', chatListLoading: 'getChatListLoadingStatus', - currentUserID: 'getCurrentUserID', activeInbox: 'getSelectedInbox', conversationStats: 'conversationStats/getStats', appliedFilters: 'getAppliedConversationFilters', folders: 'customViews/getCustomViews', - inboxes: 'inboxes/getInboxes', agentList: 'agents/getAgents', teamsList: 'teams/getTeams', inboxesList: 'inboxes/getInboxes', diff --git a/app/javascript/dashboard/components/CustomAttribute.vue b/app/javascript/dashboard/components/CustomAttribute.vue index c0416d7bb..5dfd33d38 100644 --- a/app/javascript/dashboard/components/CustomAttribute.vue +++ b/app/javascript/dashboard/components/CustomAttribute.vue @@ -28,7 +28,6 @@ export default { default: null, }, regexCue: { type: String, default: null }, - regexEnabled: { type: Boolean, default: false }, attributeKey: { type: String, required: true }, contactId: { type: Number, default: null }, }, diff --git a/app/javascript/dashboard/components/Snackbar.vue b/app/javascript/dashboard/components/Snackbar.vue index cf99c4d36..3a23a15ef 100644 --- a/app/javascript/dashboard/components/Snackbar.vue +++ b/app/javascript/dashboard/components/Snackbar.vue @@ -6,11 +6,6 @@ export default { type: Object, default: () => {}, }, - showButton: Boolean, - duration: { - type: [String, Number], - default: 3000, - }, }, data() { return { @@ -27,14 +22,14 @@ export default {
-
+
{{ message }}
{{ action.message }} diff --git a/app/javascript/dashboard/components/buttons/ResolveAction.vue b/app/javascript/dashboard/components/buttons/ResolveAction.vue index a73f82600..fb30a4d6c 100644 --- a/app/javascript/dashboard/components/buttons/ResolveAction.vue +++ b/app/javascript/dashboard/components/buttons/ResolveAction.vue @@ -17,7 +17,6 @@ export default { WootDropdownMenu, }, mixins: [keyboardEventListenerMixins], - props: { conversationId: { type: [String, Number], required: true } }, data() { return { isLoading: false, diff --git a/app/javascript/dashboard/components/layout/Sidebar.vue b/app/javascript/dashboard/components/layout/Sidebar.vue index e87ecbea0..9ca958bc4 100644 --- a/app/javascript/dashboard/components/layout/Sidebar.vue +++ b/app/javascript/dashboard/components/layout/Sidebar.vue @@ -33,7 +33,6 @@ export default { computed: { ...mapGetters({ accountId: 'getCurrentAccountId', - currentRole: 'getCurrentRole', currentUser: 'getCurrentUser', globalConfig: 'globalConfig/get', inboxes: 'inboxes/getInboxes', diff --git a/app/javascript/dashboard/components/layout/sidebarComponents/NotificationBell.vue b/app/javascript/dashboard/components/layout/sidebarComponents/NotificationBell.vue index 2346c3dec..48e5aef7f 100644 --- a/app/javascript/dashboard/components/layout/sidebarComponents/NotificationBell.vue +++ b/app/javascript/dashboard/components/layout/sidebarComponents/NotificationBell.vue @@ -4,7 +4,6 @@ import { mapGetters } from 'vuex'; export default { computed: { ...mapGetters({ - accountId: 'getCurrentAccountId', notificationMetadata: 'notifications/getMeta', }), unreadCount() { diff --git a/app/javascript/dashboard/components/ui/PreviewCard.vue b/app/javascript/dashboard/components/ui/PreviewCard.vue index f441a2645..069ea37a9 100644 --- a/app/javascript/dashboard/components/ui/PreviewCard.vue +++ b/app/javascript/dashboard/components/ui/PreviewCard.vue @@ -13,10 +13,6 @@ export default { type: Boolean, default: false, }, - buttonText: { - type: String, - default: 'Active', - }, src: { type: String, default: '', @@ -40,7 +36,7 @@ export default { active, }" > -
{{ heading }}
+
{{ heading }}
[], @@ -51,7 +50,7 @@ export default { @@ -59,7 +58,7 @@ export default { {{ items.indexOf(item) + 1 }} -

+

{{ item.body }}

diff --git a/app/javascript/dashboard/components/widgets/AIAssistanceButton.vue b/app/javascript/dashboard/components/widgets/AIAssistanceButton.vue index 4fee4d27c..46a48e149 100644 --- a/app/javascript/dashboard/components/widgets/AIAssistanceButton.vue +++ b/app/javascript/dashboard/components/widgets/AIAssistanceButton.vue @@ -34,7 +34,6 @@ export default { }), computed: { ...mapGetters({ - currentChat: 'getSelectedChat', isAChatwootInstance: 'globalConfig/isAChatwootInstance', }), isAICTAModalDismissed() { diff --git a/app/javascript/dashboard/components/widgets/AIAssistanceModal.vue b/app/javascript/dashboard/components/widgets/AIAssistanceModal.vue index f38337ff8..5435407f0 100644 --- a/app/javascript/dashboard/components/widgets/AIAssistanceModal.vue +++ b/app/javascript/dashboard/components/widgets/AIAssistanceModal.vue @@ -1,5 +1,4 @@ -