mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
cleanup old code
This commit is contained in:
parent
06545fead1
commit
e108f3e446
1 changed files with 1 additions and 22 deletions
|
@ -13,21 +13,6 @@
|
|||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
<v-spacer v-if="!isMobile"> </v-spacer>
|
||||
|
||||
<!-- <FuseSearchBar :raw-data="shownRecipes" @results="filterItems" :search="searchString">
|
||||
<v-text-field
|
||||
v-model="searchString"
|
||||
clearable
|
||||
solo
|
||||
dense
|
||||
class="mx-2"
|
||||
hide-details
|
||||
single-line
|
||||
:placeholder="$t('search.search')"
|
||||
prepend-inner-icon="mdi-magnify"
|
||||
>
|
||||
</v-text-field>
|
||||
</FuseSearchBar> -->
|
||||
</div>
|
||||
<v-card-text>
|
||||
<CardSection :sortable="true" title="Unorganized" :recipes="shownRecipes" @sort="assignSorted" />
|
||||
|
@ -36,7 +21,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
// import FuseSearchBar from "@/components/UI/Search/FuseSearchBar";
|
||||
import { api } from "@/api";
|
||||
import CardSection from "@/components/UI/CardSection";
|
||||
export default {
|
||||
|
@ -55,22 +39,17 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
shownRecipes() {
|
||||
console.log(this.filter);
|
||||
if (this.sortedResults.length > 0) {
|
||||
return this.sortedResults;
|
||||
} else {
|
||||
switch (this.filter) {
|
||||
case "category":
|
||||
console.log(this.categoryRecipes);
|
||||
return this.categoryRecipes;
|
||||
case "tag":
|
||||
console.log(this.tagRecipes);
|
||||
return this.tagRecipes;
|
||||
|
||||
default:
|
||||
break;
|
||||
return [];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
},
|
||||
isMobile() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue