-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression: Quick action button missing for Omnichannel On-Hold queue (…
…#21285) * Move manual OnHold button to header + Minor fixes * Move On Hold client files to ee folder * Cleanup * Move Visitor abandoment setting to EE * Add new on-hold icon * Fix settings. * Fix setting file. Co-authored-by: Renato Becker <[email protected]>
- Loading branch information
1 parent
85e9cf3
commit cca963a
Showing
11 changed files
with
143 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
client/contexts/ServerContext/endpoints/v1/livechat/onHold.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export type LivechatRoomOnHoldEndpoint = { | ||
POST: (roomId: string) => { | ||
success: boolean; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
ee/app/livechat-enterprise/client/components/modals/PlaceChatOnHoldModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Box, Button, ButtonGroup, Icon, Modal } from '@rocket.chat/fuselage'; | ||
import React, { FC } from 'react'; | ||
|
||
import { useTranslation } from '../../../../../../client/contexts/TranslationContext'; | ||
import { RequiredModalProps } from '../../../../../../client/components/withDoNotAskAgain'; | ||
|
||
type PlaceChatOnHoldModalProps = RequiredModalProps & { | ||
onOnHoldChat: () => void; | ||
onCancel: () => void; | ||
}; | ||
|
||
const PlaceChatOnHoldModal: FC<PlaceChatOnHoldModalProps> = ({ | ||
onCancel, | ||
onOnHoldChat, | ||
confirm = onOnHoldChat, | ||
...props | ||
}) => { | ||
const t = useTranslation(); | ||
|
||
return <Modal {...props}> | ||
<Modal.Header> | ||
<Icon name='pause-unfilled' size={20}/> | ||
<Modal.Title>{t('Livechat_onHold_Chat')}</Modal.Title> | ||
<Modal.Close onClick={onCancel}/> | ||
</Modal.Header> | ||
<Modal.Content fontScale='p1'> | ||
{t('Would_you_like_to_place_chat_on_hold')} | ||
</Modal.Content> | ||
<Modal.Footer> | ||
<Box> | ||
<ButtonGroup align='end'> | ||
<Button onClick={onCancel}>{t('Cancel')}</Button> | ||
<Button primary onClick={confirm}>{t('Livechat_onHold_Chat')}</Button> | ||
</ButtonGroup> | ||
</Box> | ||
</Modal.Footer> | ||
</Modal>; | ||
}; | ||
|
||
export default PlaceChatOnHoldModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
ee/app/livechat-enterprise/lib/QuickActions/defaultActions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { addAction, QuickActionsEnum } from '../../../../../client/views/room/lib/QuickActions'; | ||
|
||
addAction(QuickActionsEnum.OnHoldChat, { | ||
groups: ['live'], | ||
id: QuickActionsEnum.OnHoldChat, | ||
title: 'Livechat_onHold_Chat', | ||
icon: 'pause-unfilled', | ||
order: 5, | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters