diff --git a/src/containers/Dialogs/SMSMessageDialog/index.js b/src/containers/Dialogs/SMSMessageDialog/index.js index acb3c8784..aadb1b13e 100644 --- a/src/containers/Dialogs/SMSMessageDialog/index.js +++ b/src/containers/Dialogs/SMSMessageDialog/index.js @@ -20,7 +20,7 @@ function SMSMessageDialog({ return ( { + const handleEditMessageText = ({ key }) => { openDialog('sms-message-form', { notificationkey: key }); }; + const handleEnableNotification = () => {}; + return ( ); diff --git a/src/containers/Preferences/SMSIntegration/components.js b/src/containers/Preferences/SMSIntegration/components.js index a8bd30796..ee02b1249 100644 --- a/src/containers/Preferences/SMSIntegration/components.js +++ b/src/containers/Preferences/SMSIntegration/components.js @@ -1,8 +1,27 @@ import React from 'react'; import intl from 'react-intl-universal'; +import { Menu, MenuItem, MenuDivider } from '@blueprintjs/core'; import { SwitchFieldCell } from 'components/DataTableCells'; import { safeCallback } from 'utils'; +export function ActionsMenu({ + payload: { onEditMessageText, onEnableNotification }, + row: { original }, +}) { + return ( + + + + + ); +} + /** * Notification accessor. */ @@ -18,14 +37,14 @@ export const NotificationAccessor = (row) => { }; export const SMSMessageCell = ({ - payload: { onEditSMSMessage }, + payload: { onEditMessageText }, row: { original }, }) => (
{original.sms_message} {'Edit'} @@ -35,7 +54,7 @@ export const SMSMessageCell = ({ export function useSMSIntegrationTableColumns() { return React.useMemo(() => [ { - Header: intl.get('sms_message.label_Notification'), + Header: intl.get('sms_messages.label_notification'), accessor: NotificationAccessor, className: 'notification', width: '180', @@ -49,7 +68,7 @@ export function useSMSIntegrationTableColumns() { disableSortBy: true, }, { - Header: intl.get('sms_message.label_mesage'), + Header: intl.get('sms_messages.label_mesage'), accessor: 'sms_message', Cell: SMSMessageCell, className: 'sms_message', @@ -58,7 +77,7 @@ export function useSMSIntegrationTableColumns() { disableSortBy: true, }, { - Header: intl.get('sms_message.label_auto'), + Header: intl.get('sms_messages.label_auto'), accessor: 'is_notification_enabled', Cell: SwitchFieldCell, className: 'is_notification_enabled', diff --git a/src/lang/ar/index.json b/src/lang/ar/index.json index 9edc01ec9..af6998c5c 100644 --- a/src/lang/ar/index.json +++ b/src/lang/ar/index.json @@ -1455,9 +1455,11 @@ "sms_integration.label.overview":"نظرة عامة", "sms_integration.label.sms_messages":"رسائل SMS ", "sms_message.label.sms_messages_template":" إشعارات رسائل قصيرة ", - "sms_message.label_mesage":"رسالة ", - "sms_message.label_Notification":"إشعار", - "sms_message.label_auto":"Auto", + "sms_messages.label_mesage":"رسالة ", + "sms_messages.label_notification":"إشعار", + "sms_messages.label_auto":"Auto", "sms_message":"رسالة SMS" , - "sms_message.dialog.success_message":"Sms notification settings has been updated successfully." + "sms_message.dialog.success_message":"Sms notification settings has been updated successfully.", + "edit_message_text":"تعديل نص رسالة", + "enable_notification":"تفعيل الإشعارات" } \ No newline at end of file diff --git a/src/lang/en/index.json b/src/lang/en/index.json index 6fec2ea85..c15694cf0 100644 --- a/src/lang/en/index.json +++ b/src/lang/en/index.json @@ -1440,12 +1440,13 @@ "sms_integration.label":"SMS Integration", "sms_integration.label.overview":"Overview", "sms_integration.label.sms_messages":"SMS Messages", - "sms_message.label.sms_messages_template":"SMS Notifications ", - "sms_message.label_mesage":"Message", - "sms_message.label_Notification":"Notification", - "sms_message.label_auto":"Auto", - "sms_message":"SMS message", + "sms_messages.label_notification":"Notification", + "sms_messages.label_mesage":"Message", + "sms_messages.label_auto":"Auto", + "sms_message.dialog.label":"SMS message", "sms_message.dialog.success_message":"Sms notification settings has been updated successfully.", - "sms_message.dialog.unsupported_variables_error_message":"Unsupported variables" + "sms_message.dialog.unsupported_variables_error_message":"Unsupported variables", + "edit_message_text":"Edit message text", + "enable_notification":"Enable notification" }