Skip to content

Commit df59af0

Browse files
committed
fix hide_filters_for_agent hide_unassigned_for_agent hide_all_chats_for_agent
1 parent 9bf04a7 commit df59af0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/javascript/dashboard/components/ChatList.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,13 @@ const intersectionObserverOptions = computed(() => {
154154
};
155155
});
156156
157-
const isAdministrator = computed(() => currentRole.value === 'administrator');
157+
const isAdministrator = computed(() => {
158+
return currentRole.value === 'administrator';
159+
});
158160
159161
const hideAllChatsForAgents = computed(() => {
160162
return (
161-
isFeatureEnabledonAccount.fn(
163+
isFeatureEnabledonAccount.value(
162164
currentAccountId.value,
163165
'hide_all_chats_for_agent'
164166
) && !isAdministrator.value
@@ -167,7 +169,7 @@ const hideAllChatsForAgents = computed(() => {
167169
168170
const hideFiltersForAgents = computed(() => {
169171
return (
170-
isFeatureEnabledonAccount.fn(
172+
isFeatureEnabledonAccount.value(
171173
currentAccountId.value,
172174
'hide_filters_for_agent'
173175
) && !isAdministrator.value
@@ -176,7 +178,7 @@ const hideFiltersForAgents = computed(() => {
176178
177179
const hideUnassignedForAgents = computed(() => {
178180
return (
179-
isFeatureEnabledonAccount.fn(
181+
isFeatureEnabledonAccount.value(
180182
currentAccountId.value,
181183
'hide_unassigned_for_agent'
182184
) && !isAdministrator.value

0 commit comments

Comments
 (0)