fix: navigation

This commit is contained in:
Muhsin Keloth
2024-03-31 13:34:33 +05:30
parent de982f2c9f
commit 975ce54fd7
3 changed files with 4 additions and 3 deletions
@@ -12,6 +12,7 @@ const reports = accountId => ({
'label_reports',
'inbox_reports',
'team_reports',
'sla_reports',
],
menuItems: [
{
@@ -72,7 +73,7 @@ const reports = accountId => ({
toStateName: 'team_reports',
},
{
icon: 'people',
icon: 'document-list-clock',
label: 'REPORTS_SLA',
hasSubMenu: false,
toState: frontendURL(`accounts/${accountId}/reports/sla`),
@@ -157,7 +157,7 @@ export default {
component: SettingsContent,
props: {
headerTitle: 'SLA_REPORTS.HEADER',
icon: 'people-team',
icon: 'document-list-clock',
keepAlive: false,
},
children: [
+1 -1
View File
@@ -39,7 +39,7 @@ class AppliedSla < ApplicationRecord
joins(:conversation).where(conversations: { assigned_agent_id: assigned_agent_id })
end
}
scope :missed, -> { where(sla_status: :missed) }
scope :missed, -> { where(sla_status: %i[missed active_with_misses]) }
private
def ensure_account_id