meal plan editor tweaks

This commit is contained in:
vabene1111
2024-10-10 21:13:58 +02:00
parent 4f425fb99a
commit eee8ed70e7
8 changed files with 40 additions and 183 deletions

View File

@@ -17,9 +17,8 @@
</span>
</div>
</div>
<meal-plan-dialog :meal-plan="mealPlan"></meal-plan-dialog>
<model-edit-dialog model="MealPlan" :item="mealPlan" @delete="(args: MealPlan) => emit('delete', args)"></model-edit-dialog>
</v-card-text>
</v-card>
</template>
@@ -28,12 +27,16 @@
import {computed, PropType} from "vue";
import {IMealPlanNormalizedCalendarItem} from "@/types/MealPlan";
import RecipeImage from "@/components/display/RecipeImage.vue";
import MealPlanDialog from "@/components/dialogs/MealPlanDialog.vue";
import ModelEditDialog from "@/components/dialogs/ModelEditDialog.vue";
import {MealPlan} from "@/openapi";
const emit = defineEmits({
onDragStart: (value: IMealPlanNormalizedCalendarItem, event: DragEvent) => {
return true
},
delete: (value: MealPlan) => {
return true
}
})
let props = defineProps({