Răsfoiți Sursa

adjust getter logic

itizawa 5 ani în urmă
părinte
comite
d06adbfa6a
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      src/client/js/services/PageContainer.js

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

@@ -192,14 +192,14 @@ export default class PageContainer extends Container {
    */
   get isAbleToShowPageEditorModeManager() {
     const { isNotCreatable, isPageInTrash } = this.state;
-    const { isSharedUser, isGuestUser } = this.appContainer;
+    const { isSharedUser } = this.appContainer;
 
-    return (!isNotCreatable && !isPageInTrash && !isSharedUser && !isGuestUser);
+    return (!isNotCreatable && !isPageInTrash && !isSharedUser);
   }
 
   /**
-   * whether to threeStrandedButton
-   * ex.) view, edit, hackmd
+   * whether to display pageAuthors
+   * ex.) creator, lastUpdateUser
    */
   get isAbleToShowPageAuthors() {
     const { isPageExist, isUserPage } = this.state;