فهرست منبع

remove unused state "isSlackEnabled" "slackChannels" from CommentContainer

kaori 3 سال پیش
والد
کامیت
31304da9ac
2فایلهای تغییر یافته به همراه0 افزوده شده و 5 حذف شده
  1. 0 4
      packages/app/src/client/services/CommentContainer.js
  2. 0 1
      packages/app/src/client/services/ContextExtractor.tsx

+ 0 - 4
packages/app/src/client/services/CommentContainer.js

@@ -30,10 +30,6 @@ export default class CommentContainer extends Container {
 
 
     this.state = {
     this.state = {
       comments: [],
       comments: [],
-
-      // settings shared among all of CommentEditor
-      // isSlackEnabled: false,
-      // slackChannels: mainContent.getAttribute('data-slack-channels') || '',
     };
     };
 
 
     this.retrieveComments = this.retrieveComments.bind(this);
     this.retrieveComments = this.retrieveComments.bind(this);

+ 0 - 1
packages/app/src/client/services/ContextExtractor.tsx

@@ -85,7 +85,6 @@ const ContextExtractorOnce: FC = () => {
   const targetAndAncestors = JSON.parse(document.getElementById('growi-pagetree-target-and-ancestors')?.textContent || jsonNull);
   const targetAndAncestors = JSON.parse(document.getElementById('growi-pagetree-target-and-ancestors')?.textContent || jsonNull);
   const notFoundTargetPathOrId = JSON.parse(notFoundContentForPt?.getAttribute('data-not-found-target-path-or-id') || jsonNull);
   const notFoundTargetPathOrId = JSON.parse(notFoundContentForPt?.getAttribute('data-not-found-target-path-or-id') || jsonNull);
   const isNotFoundPermalink = JSON.parse(notFoundContent?.getAttribute('data-is-not-found-permalink') || jsonNull);
   const isNotFoundPermalink = JSON.parse(notFoundContent?.getAttribute('data-is-not-found-permalink') || jsonNull);
-  const slackChannels = mainContent?.getAttribute('data-slack-channels') || '';
   const isSearchPage = document.getElementById('search-page') != null;
   const isSearchPage = document.getElementById('search-page') != null;
 
 
   const grant = +(mainContent?.getAttribute('data-page-grant') || 1);
   const grant = +(mainContent?.getAttribute('data-page-grant') || 1);