mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 13:48:32 -05:00
working shopping list
This commit is contained in:
@@ -25,9 +25,12 @@
|
||||
<v-list-item>
|
||||
<v-select hide-details :items="groupingOptionsItems" v-model="useUserPreferenceStore().deviceSettings.shopping_selected_grouping" :label="$t('GroupBy')">
|
||||
</v-select>
|
||||
</v-list-item>
|
||||
<v-list-item v-if="useUserPreferenceStore().deviceSettings.shopping_selected_grouping == ShoppingGroupingOptions.CATEGORY">
|
||||
<v-switch color="primary" hide-details :label="$t('SupermarketCategoriesOnly')" v-model="useUserPreferenceStore().deviceSettings.shopping_show_selected_supermarket_only"></v-switch>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<model-select model="Supermarket"></model-select>
|
||||
<model-select model="Supermarket" v-model="useUserPreferenceStore().deviceSettings.shopping_selected_supermarket"></model-select>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item>
|
||||
@@ -37,6 +40,7 @@
|
||||
<v-switch color="primary" hide-details :label="$t('ShowRecentlyCompleted')"
|
||||
v-model="useUserPreferenceStore().deviceSettings.shopping_show_checked_entries"></v-switch>
|
||||
</v-list-item>
|
||||
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-tabs>
|
||||
@@ -79,7 +83,7 @@
|
||||
</v-row>
|
||||
|
||||
<v-row>
|
||||
<v-col cols="4">
|
||||
<v-col cols="12" md="4">
|
||||
<v-card>
|
||||
<v-card-title>Auto Sync Debug</v-card-title>
|
||||
<v-card-text>
|
||||
@@ -92,24 +96,24 @@
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="4">
|
||||
<v-col cols="12" md="4">
|
||||
<v-card>
|
||||
<v-card-title>Sync Queue Debug</v-card-title>
|
||||
<v-card-text>
|
||||
Length: {{ useShoppingStore().itemCheckSyncQueue.length }} <br/>
|
||||
Has Failed Items: {{ useShoppingStore().hasFailedItems()}}
|
||||
Has Failed Items: {{ useShoppingStore().hasFailedItems() }}
|
||||
<v-list>
|
||||
<v-list-item v-for="i in useShoppingStore().itemCheckSyncQueue" :key="i">{{ i }}</v-list-item>
|
||||
</v-list>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="4">
|
||||
<v-col cols="12" md="4">
|
||||
<v-card>
|
||||
<v-card-title>Undo Debug</v-card-title>
|
||||
<v-card-text>
|
||||
<v-list>
|
||||
<v-list-item v-for="i in useShoppingStore().undoStack" :key="i">{{ i.type }} {{ i.entries.flatMap(e => e.food.name)}}</v-list-item>
|
||||
<v-list-item v-for="i in useShoppingStore().undoStack" :key="i">{{ i.type }} {{ i.entries.flatMap(e => e.food.name) }}</v-list-item>
|
||||
</v-list>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
@@ -167,8 +171,8 @@ const shoppingLineItemDialogFood = ref({} as IShoppingListFood)
|
||||
* VSelect items for shopping list grouping options with localized names
|
||||
*/
|
||||
const groupingOptionsItems = computed(() => {
|
||||
let items = []
|
||||
Object.keys(ShoppingGroupingOptions).forEach(x => {
|
||||
let items: any[] = []
|
||||
Object.values(ShoppingGroupingOptions).forEach(x => {
|
||||
items.push({'title': t(x), 'value': x})
|
||||
})
|
||||
return items
|
||||
|
||||
@@ -19,6 +19,12 @@
|
||||
<br/>
|
||||
<v-btn color="primary" class="mt-1" href="/accounts/social/connections/" target="_blank">{{ $t('Social_Authentication') }}</v-btn>
|
||||
<br/>
|
||||
|
||||
<p class="text-h6 mt-3">{{ $t('DeviceSettings') }}</p>
|
||||
<p class="text-disabled">{{$t('DeviceSettingsHelp')}}</p>
|
||||
|
||||
<v-btn @click="useUserPreferenceStore().resetDeviceSettings()">{{$t('Reset')}}</v-btn>
|
||||
|
||||
</v-form>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user