Skip to content

Commit

Permalink
fixed minor identation issue, fixed the naming of the setting under t…
Browse files Browse the repository at this point in the history
…he translations to show the description
  • Loading branch information
cabaceira committed Oct 3, 2023
1 parent aff1d43 commit d090dbe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ 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);

Check failure on line 313 in apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx

View workflow job for this annotation

GitHub Actions / 🔎 Code Check / Code Lint

Replace `·` with `⏎↹↹`
const hasPermissionButtons = (id: string): boolean => {
switch (id) {
case QuickActionsEnum.MoveQueue:
Expand Down
1 change: 0 additions & 1 deletion apps/meteor/ee/app/livechat-enterprise/server/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ export const createSettings = async (): Promise<void> => {
enableQuery: { _id: 'Livechat_allow_manual_on_hold', value: true },

Check failure on line 209 in apps/meteor/ee/app/livechat-enterprise/server/settings.ts

View workflow job for this annotation

GitHub Actions / 🔎 Code Check / Code Lint

Replace `········` with `↹↹`
});


await settingsRegistry.add('Livechat_auto_transfer_chat_timeout', 0, {
type: 'int',
group: 'Omnichannel',
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,7 @@
"Livechat_Agents": "Agents",
"Livechat_allow_manual_on_hold": "Allow agents to manually place chat On Hold",
"Livechat_allow_manual_on_hold_upon_agent_engagement_only": "Allow agents to manually place chat On Hold, provided the agent has sent the last message",
"Livechat_allow_manual_on_hold__upon_agent_engagement_only_Description": "If enabled, the agent will get a new option to place a chat On Hold, provided the agent has sent the last message, otherwise Agents are able to place chats onHold irrespective",
"Livechat_allow_manual_on_hold_upon_agent_engagement_only_Description": "If enabled, the agent will get a new option to place a chat On Hold, provided the agent has sent the last message, otherwise Agents are able to place chats onHold irrespective",
"Livechat_AllowedDomainsList": "Livechat Allowed Domains",
"Livechat_Appearance": "Livechat Appearance",
"Livechat_auto_close_on_hold_chats_custom_message": "Custom message for closed chats in On Hold queue",
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/packages/rocketchat-i18n/i18n/pt-BR.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,7 @@
"Livechat_Agents": "Agentes",
"Livechat_allow_manual_on_hold": "Permitir que agentes coloquem a conversa em espera manualmente",
"Livechat_allow_manual_on_hold_upon_agent_engagement_only": "Permitir que agentes coloquem a conversa em espera manualmente, sempre que o agente tenha enviado a última mensagem",
"Livechat_allow_manual_on_hold__upon_agent_engagement_only_Description": "Se habilitado, o agente terá uma nova opção para colocar a conversa em espera, desde que o agente tenha enviado a última mensagem. Caso contrário poderá sempre colocar a conversa em espera.",
"Livechat_allow_manual_on_hold_upon_agent_engagement_only_Description": "Se habilitado, o agente terá uma nova opção para colocar a conversa em espera, desde que o agente tenha enviado a última mensagem. Caso contrário poderá sempre colocar a conversa em espera.",
"Livechat_AllowedDomainsList": "Domínios permitidos em Livechat",
"Livechat_Appearance": "Aparência do livechat",
"Livechat_auto_close_on_hold_chats_custom_message": "Mensagem personalizada para conversas encerradas na fila em espera",
Expand Down

0 comments on commit d090dbe

Please sign in to comment.