Steven 4 лет назад
Родитель
Сommit
1fc74c4581
1 измененных файлов с 0 добавлено и 24 удалено
  1. 0 24
      packages/app/src/client/services/EditorContainer.js

+ 0 - 24
packages/app/src/client/services/EditorContainer.js

@@ -27,10 +27,6 @@ export default class EditorContainer extends Container {
     this.state = {
       tags: null,
 
-      // grant: 1, // default: public
-      // grantGroupId: null,
-      // grantGroupName: null,
-
       editorOptions: {},
       previewOptions: {},
 
@@ -57,26 +53,6 @@ export default class EditorContainer extends Container {
     return 'EditorContainer';
   }
 
-  /**
-   * initialize state for page permission
-   */
-  // initStateGrant() {
-  //   const mainContent = document.getElementById('content-main');
-
-  //   if (mainContent == null) {
-  //     logger.debug('#content-main element is not exists');
-  //     return;
-  //   }
-
-  //   this.state.grant = +mainContent.getAttribute('data-page-grant');
-
-  //   const grantGroupId = mainContent.getAttribute('data-page-grant-group');
-  //   if (grantGroupId != null && grantGroupId.length > 0) {
-  //     this.state.grantGroupId = grantGroupId;
-  //     this.state.grantGroupName = mainContent.getAttribute('data-page-grant-group-name');
-  //   }
-  // }
-
   /**
    * initialize state for drafts
    */