Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Oct 3, 2023
1 parent b90eb8f commit 5c468dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ export const useQuickActions = (): {
const canCloseRoom = usePermission('close-livechat-room');
const canCloseOthersRoom = usePermission('close-others-livechat-room');
const allowManualOnHoldUponAgentEngagement = useSetting('Livechat_allow_manual_on_hold_upon_agent_engagement_only');
const canPlaceChatOnHold = !room.onHold && room.u && manualOnHoldAllowed &&
(allowManualOnHoldUponAgentEngagement ? !(room as any).lastMessage?.token : true);
const canPlaceChatOnHold =
!room.onHold && room.u && manualOnHoldAllowed && (allowManualOnHoldUponAgentEngagement ? !(room as any).lastMessage?.token : true);
const hasPermissionButtons = (id: string): boolean => {
switch (id) {
case QuickActionsEnum.MoveQueue:
Expand Down
19 changes: 9 additions & 10 deletions apps/meteor/ee/app/livechat-enterprise/server/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,15 @@ export const createSettings = async (): Promise<void> => {
});

await settingsRegistry.add('Livechat_allow_manual_on_hold_upon_agent_engagement_only', true, {
type: 'boolean',
group: 'Omnichannel',
section: 'Sessions',
enterprise: true,
invalidValue: false,
public: true,
modules: ['livechat-enterprise'],
enableQuery: { _id: 'Livechat_allow_manual_on_hold', value: true },
});

type: 'boolean',
group: 'Omnichannel',
section: 'Sessions',
enterprise: true,
invalidValue: false,
public: true,
modules: ['livechat-enterprise'],
enableQuery: { _id: 'Livechat_allow_manual_on_hold', value: true },
});

await settingsRegistry.add('Livechat_auto_transfer_chat_timeout', 0, {
type: 'int',
Expand Down

0 comments on commit 5c468dc

Please sign in to comment.