Skip to content

Commit

Permalink
fix hide_filters_for_agent hide_unassigned_for_agent hide_all_chats_f…
Browse files Browse the repository at this point in the history
…or_agent
  • Loading branch information
clairton committed Oct 29, 2024
1 parent 9bf04a7 commit df59af0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/javascript/dashboard/components/ChatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,13 @@ const intersectionObserverOptions = computed(() => {
};
});
const isAdministrator = computed(() => currentRole.value === 'administrator');
const isAdministrator = computed(() => {
return currentRole.value === 'administrator';
});
const hideAllChatsForAgents = computed(() => {
return (
isFeatureEnabledonAccount.fn(
isFeatureEnabledonAccount.value(
currentAccountId.value,
'hide_all_chats_for_agent'
) && !isAdministrator.value
Expand All @@ -167,7 +169,7 @@ const hideAllChatsForAgents = computed(() => {
const hideFiltersForAgents = computed(() => {
return (
isFeatureEnabledonAccount.fn(
isFeatureEnabledonAccount.value(
currentAccountId.value,
'hide_filters_for_agent'
) && !isAdministrator.value
Expand All @@ -176,7 +178,7 @@ const hideFiltersForAgents = computed(() => {
const hideUnassignedForAgents = computed(() => {
return (
isFeatureEnabledonAccount.fn(
isFeatureEnabledonAccount.value(
currentAccountId.value,
'hide_unassigned_for_agent'
) && !isAdministrator.value
Expand Down

0 comments on commit df59af0

Please sign in to comment.