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

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

@@ -31,10 +31,10 @@ class GlobalNotificationList extends React.Component {
   }
   }
 
 
   async onClickSubmit() {
   async onClickSubmit() {
-    const { t } = this.props;
+    const { t, adminNotificationContainer } = this.props;
 
 
     try {
     try {
-      // await this.props.adminMarkDownContainer.updateLineBreakSetting();
+      await adminNotificationContainer.deleteGlobalNotificationPattern();
       toastSuccess(t('notification_setting.delete__notification_pattern'));
       toastSuccess(t('notification_setting.delete__notification_pattern'));
     }
     }
     catch (err) {
     catch (err) {

+ 7 - 0
src/client/js/services/AdminNotificationContainer.js

@@ -114,4 +114,11 @@ export default class AdminNotificationContainer extends Container {
     this.setState({ userNotifications: response.data.responseParams.userNotifications });
     this.setState({ userNotifications: response.data.responseParams.userNotifications });
   }
   }
 
 
+  /**
+   * Delete global notification pattern
+   */
+  async deleteGlobalNotificationPattern() {
+    // TODO GW-780 create apiV3
+  }
+
 }
 }