Преглед изворни кода

rename editablePages to isEditable

kaori пре 5 година
родитељ
комит
e3b7bbf877
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      src/client/js/legacy/crowi.js
  2. 1 1
      src/client/js/services/PageContainer.js

+ 2 - 2
src/client/js/legacy/crowi.js

@@ -201,13 +201,13 @@ $(() => {
 
 
 window.addEventListener('load', (e) => {
 window.addEventListener('load', (e) => {
   const { appContainer, pageContainer } = window;
   const { appContainer, pageContainer } = window;
-  const editablePages = pageContainer;
+  const isEditable = pageContainer;
 
 
   // hash on page
   // hash on page
   if (window.location.hash) {
   if (window.location.hash) {
     const navigationContainer = appContainer.getContainer('NavigationContainer');
     const navigationContainer = appContainer.getContainer('NavigationContainer');
 
 
-    if (window.location.hash === '#edit' && editablePages) {
+    if (window.location.hash === '#edit' && isEditable) {
       navigationContainer.setEditorMode('edit');
       navigationContainer.setEditorMode('edit');
 
 
       // focus
       // focus

+ 1 - 1
src/client/js/services/PageContainer.js

@@ -134,7 +134,7 @@ export default class PageContainer extends Container {
   }
   }
 
 
 
 
-  get editablePages() {
+  get isEditable() {
     const { appContainer } = window;
     const { appContainer } = window;
     const { currentUser } = appContainer;
     const { currentUser } = appContainer;
     const {
     const {