浏览代码

Add 'no categories' message

sbkwgh 8 年之前
父节点
当前提交
b1b623e942
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/components/routes/Index.vue

+ 3 - 0
src/components/routes/Index.vue

@@ -14,6 +14,9 @@
 				</div>
 			</div>
 		</div>
+		<div v-if='!$store.state.meta.categories.length'>
+			There are no categories to show, but you can add them on the admin page
+		</div>
 	</div>
 </template>