浏览代码

fix: hide new page button when path not available (#1394)

NGPixel 5 年之前
父节点
当前提交
a1e0e4f27a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/common/nav-header.vue

+ 1 - 1
client/components/common/nav-header.vue

@@ -144,7 +144,7 @@
 
 
           //- NEW PAGE
           //- NEW PAGE
 
 
-          template(v-if='isAuthenticated')
+          template(v-if='isAuthenticated && path && mode !== `edit`')
             v-tooltip(bottom)
             v-tooltip(bottom)
               template(v-slot:activator='{ on }')
               template(v-slot:activator='{ on }')
                 v-btn(icon, tile, height='64', v-on='on', @click='pageNew')
                 v-btn(icon, tile, height='64', v-on='on', @click='pageNew')