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>
|
||||||
</v-btn-toggle>
|
</v-btn-toggle>
|
||||||
<v-spacer v-if="!isMobile"> </v-spacer>
|
<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>
|
</div>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<CardSection :sortable="true" title="Unorganized" :recipes="shownRecipes" @sort="assignSorted" />
|
<CardSection :sortable="true" title="Unorganized" :recipes="shownRecipes" @sort="assignSorted" />
|
||||||
|
@ -36,7 +21,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import FuseSearchBar from "@/components/UI/Search/FuseSearchBar";
|
|
||||||
import { api } from "@/api";
|
import { api } from "@/api";
|
||||||
import CardSection from "@/components/UI/CardSection";
|
import CardSection from "@/components/UI/CardSection";
|
||||||
export default {
|
export default {
|
||||||
|
@ -55,22 +39,17 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
shownRecipes() {
|
shownRecipes() {
|
||||||
console.log(this.filter);
|
|
||||||
if (this.sortedResults.length > 0) {
|
if (this.sortedResults.length > 0) {
|
||||||
return this.sortedResults;
|
return this.sortedResults;
|
||||||
} else {
|
} else {
|
||||||
switch (this.filter) {
|
switch (this.filter) {
|
||||||
case "category":
|
case "category":
|
||||||
console.log(this.categoryRecipes);
|
|
||||||
return this.categoryRecipes;
|
return this.categoryRecipes;
|
||||||
case "tag":
|
case "tag":
|
||||||
console.log(this.tagRecipes);
|
|
||||||
return this.tagRecipes;
|
return this.tagRecipes;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
return [];
|
||||||
}
|
}
|
||||||
return [];
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isMobile() {
|
isMobile() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue