Skip to content

Commit

Permalink
Merge pull request #48 from beabee-communityrm/chore/1162-hide-contac…
Browse files Browse the repository at this point in the history
…t-cnr-mode

chore: hide contact column in CNR mode
  • Loading branch information
wpf500 authored Aug 29, 2024
2 parents b436301 + e8983a3 commit 848e393
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { fetchTags } from '@utils/api/callout';
import type { SelectItem } from '@components/forms/form.interface';
import { convertComponentsToFilters } from '@utils/callouts';

import env from '@env';

const { t } = i18n.global;

export const headers = computed<Header[]>(() => [
Expand All @@ -21,10 +23,14 @@ export const headers = computed<Header[]>(() => [
text: t('calloutResponsesPage.response'),
sortable: true,
},
{
value: 'contact',
text: t('calloutResponse.data.contact'),
},
...(env.cnrMode
? []
: [
{
value: 'contact',
text: t('calloutResponse.data.contact'),
},
]),
{
value: 'assignee',
text: t('calloutResponse.data.assignee'),
Expand Down

0 comments on commit 848e393

Please sign in to comment.