feature/category-tag-crud (#354)

* update tag route

* search.and

* offset for mobile

* relative imports

* get settings

* new page

* category/tag CRUD

* bulk assign frontend

* Bulk assign

* debounce search

* remove dev data

* recipe store refactor

* fix mobile view

* fix failing tests

* commit test data

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-04-27 11:17:00 -08:00
committed by GitHub
parent f748bbba68
commit 846d1eda5b
40 changed files with 1028 additions and 145 deletions

View File

@@ -1,5 +1,10 @@
<template>
<v-container>
<v-progress-linear
v-if="loading"
indeterminate
color="primary"
></v-progress-linear>
<CardSection
:sortable="true"
:title="$t('page.all-recipes')"
@@ -18,14 +23,20 @@ export default {
CardSection,
},
data() {
return {};
return {
loading: false,
};
},
mounted() {
this.$store.dispatch("requestAllRecipes");
async mounted() {
if (this.allRecipes.length < 1) {
this.loading = true;
}
await this.$store.dispatch("requestAllRecipes");
this.loading = false;
},
computed: {
allRecipes() {
return this.$store.getters.getRecentRecipes;
return this.$store.getters.getAllRecipes;
},
},
methods: {