itizawa 6 лет назад
Родитель
Сommit
e9dbe75132

+ 2 - 1
resource/locales/en-US/translation.json

@@ -612,7 +612,8 @@
     },
     },
     "updated_slackApp": "Succeeded to update Slack App Configuration setting",
     "updated_slackApp": "Succeeded to update Slack App Configuration setting",
     "add_notification_pattern": "Add user trigger notification patterns",
     "add_notification_pattern": "Add user trigger notification patterns",
-    "delete__notification_pattern": "Delete notification pattern"
+    "delete_notification_pattern": "Delete notification pattern",
+    "delete_notification_pattern_desc": "Once deleted, it cannot be recovered"
   },
   },
   "customize_page": {
   "customize_page": {
     "recommended": "Recommended",
     "recommended": "Recommended",

+ 2 - 1
resource/locales/ja/translation.json

@@ -595,7 +595,8 @@
     },
     },
     "updated_slackApp": "SlackApp設定を更新しました",
     "updated_slackApp": "SlackApp設定を更新しました",
     "add_notification_pattern": "通知パターンを追加しました。",
     "add_notification_pattern": "通知パターンを追加しました。",
-    "delete__notification_pattern": "通知パターンを削除しました。"
+    "delete_notification_pattern": "通知パターンを削除しました。",
+    "delete_notification_pattern_desc": "Once deleted, it cannot be recovered"
   },
   },
   "customize_page": {
   "customize_page": {
     "recommended": "おすすめ",
     "recommended": "おすすめ",

+ 1 - 1
src/client/js/components/Admin/Notification/GlobalNotificationList.jsx

@@ -35,7 +35,7 @@ class GlobalNotificationList extends React.Component {
 
 
     try {
     try {
       await adminNotificationContainer.deleteGlobalNotificationPattern();
       await adminNotificationContainer.deleteGlobalNotificationPattern();
-      toastSuccess(t('notification_setting.delete__notification_pattern'));
+      toastSuccess(t('notification_setting.delete_notification_pattern'));
     }
     }
     catch (err) {
     catch (err) {
       toastError(err);
       toastError(err);

+ 3 - 2
src/client/js/components/Admin/Notification/NotificationDeleteModal.jsx

@@ -10,6 +10,7 @@ import AppContainer from '../../../services/AppContainer';
 class NotificationDeleteModal extends React.PureComponent {
 class NotificationDeleteModal extends React.PureComponent {
 
 
   render() {
   render() {
+    const { t } = this.props;
 
 
     return (
     return (
       <Modal show={this.props.isOpen} onHide={this.props.onClose}>
       <Modal show={this.props.isOpen} onHide={this.props.onClose}>
@@ -22,12 +23,12 @@ class NotificationDeleteModal extends React.PureComponent {
         </Modal.Header>
         </Modal.Header>
         <Modal.Body>
         <Modal.Body>
           <span className="text-danger">
           <span className="text-danger">
-            削除すると元に戻すことはできませんのでご注意ください。
+            {t('notification_setting.delete_notification_pattern_desc')}
           </span>
           </span>
         </Modal.Body>
         </Modal.Body>
         <Modal.Footer className="text-right">
         <Modal.Footer className="text-right">
           <button type="button" className="btn btn-sm btn-danger" onClick={this.props.onClickSubmit}>
           <button type="button" className="btn btn-sm btn-danger" onClick={this.props.onClickSubmit}>
-            <i className="icon icon-fire"></i> 削除
+            <i className="icon icon-fire"></i> {t('Delete')}
           </button>
           </button>
         </Modal.Footer>
         </Modal.Footer>
       </Modal>
       </Modal>