Explorar el Código

Add 'all' category

sbkwgh hace 8 años
padre
commit
99a7fe311a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/App.vue

+ 2 - 0
src/App.vue

@@ -307,6 +307,8 @@
 
 			this.axios.get('/api/v1/category')
 				.then(res => {
+					res.data.push({ name: 'All', value: 'ALL' })
+
 					this.$store.commit('addCategories', res.data)
 				}).catch(this.ajaxErrorHandler)
 		}