Pārlūkot izejas kodu

Add 'all' category

sbkwgh 8 gadi atpakaļ
vecāks
revīzija
99a7fe311a
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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)
 		}