File tree 1 file changed +6
-4
lines changed
app/javascript/dashboard/components
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,13 @@ const intersectionObserverOptions = computed(() => {
154
154
};
155
155
});
156
156
157
- const isAdministrator = computed (() => currentRole .value === ' administrator' );
157
+ const isAdministrator = computed (() => {
158
+ return currentRole .value === ' administrator' ;
159
+ });
158
160
159
161
const hideAllChatsForAgents = computed (() => {
160
162
return (
161
- isFeatureEnabledonAccount .fn (
163
+ isFeatureEnabledonAccount .value (
162
164
currentAccountId .value ,
163
165
' hide_all_chats_for_agent'
164
166
) && ! isAdministrator .value
@@ -167,7 +169,7 @@ const hideAllChatsForAgents = computed(() => {
167
169
168
170
const hideFiltersForAgents = computed (() => {
169
171
return (
170
- isFeatureEnabledonAccount .fn (
172
+ isFeatureEnabledonAccount .value (
171
173
currentAccountId .value ,
172
174
' hide_filters_for_agent'
173
175
) && ! isAdministrator .value
@@ -176,7 +178,7 @@ const hideFiltersForAgents = computed(() => {
176
178
177
179
const hideUnassignedForAgents = computed (() => {
178
180
return (
179
- isFeatureEnabledonAccount .fn (
181
+ isFeatureEnabledonAccount .value (
180
182
currentAccountId .value ,
181
183
' hide_unassigned_for_agent'
182
184
) && ! isAdministrator .value
You can’t perform that action at this time.
0 commit comments