mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-19 21:13:31 -07:00
clean up weird state issues
This commit is contained in:
parent
74e7de0fbf
commit
ce92cb4fb1
2 changed files with 4 additions and 14 deletions
|
@ -164,21 +164,11 @@ export function useShoppingListPage(listId: string) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
shoppingList,
|
|
||||||
loadingCounter,
|
|
||||||
recipeReferenceLoading,
|
|
||||||
preserveItemOrder,
|
|
||||||
edit: state.edit,
|
|
||||||
threeDot: state.threeDot,
|
|
||||||
reorderLabelsDialog: state.reorderLabelsDialog,
|
|
||||||
createEditorOpen: state.createEditorOpen,
|
|
||||||
listItems,
|
|
||||||
recipeMap,
|
|
||||||
itemsByLabel,
|
itemsByLabel,
|
||||||
isOffline,
|
isOffline,
|
||||||
|
|
||||||
// Sub-composables
|
// Sub-composables
|
||||||
...state.state,
|
...state,
|
||||||
...labels,
|
...labels,
|
||||||
...crud,
|
...crud,
|
||||||
...recipes,
|
...recipes,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
class="md-container"
|
class="md-container"
|
||||||
>
|
>
|
||||||
<BaseDialog
|
<BaseDialog
|
||||||
v-model="checkAllDialog"
|
v-model="state.checkAllDialog"
|
||||||
:title="$t('general.confirm')"
|
:title="$t('general.confirm')"
|
||||||
can-confirm
|
can-confirm
|
||||||
@confirm="checkAll"
|
@confirm="checkAll"
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
</BaseDialog>
|
</BaseDialog>
|
||||||
|
|
||||||
<BaseDialog
|
<BaseDialog
|
||||||
v-model="uncheckAllDialog"
|
v-model="state.uncheckAllDialog"
|
||||||
:title="$t('general.confirm')"
|
:title="$t('general.confirm')"
|
||||||
can-confirm
|
can-confirm
|
||||||
@confirm="uncheckAll"
|
@confirm="uncheckAll"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
</BaseDialog>
|
</BaseDialog>
|
||||||
|
|
||||||
<BaseDialog
|
<BaseDialog
|
||||||
v-model="deleteCheckedDialog"
|
v-model="state.deleteCheckedDialog"
|
||||||
:title="$t('general.confirm')"
|
:title="$t('general.confirm')"
|
||||||
can-confirm
|
can-confirm
|
||||||
@confirm="deleteChecked"
|
@confirm="deleteChecked"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue