Skip to content

Commit

Permalink
Merge branch 'mealie-recipes:mealie-next' into mealie-next
Browse files Browse the repository at this point in the history
  • Loading branch information
ATommasi authored Dec 12, 2024
2 parents 82a187f + cc37147 commit f3dac5a
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
exclude: ^tests/data/
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.1
rev: v0.8.2
hooks:
- id: ruff
- id: ruff-format
2 changes: 2 additions & 0 deletions frontend/components/global/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ export interface TableHeaders {
value: string;
show: boolean;
align?: string;
sortable?: boolean;
sort?: (a: any, b: any) => number;
}
export interface BulkAction {
Expand Down
17 changes: 17 additions & 0 deletions frontend/components/global/SafeMarkdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,20 @@ export default defineComponent({
},
});
</script>

<style scoped>
::v-deep table {
border-collapse: collapse;
width: 100%;
}
::v-deep th, ::v-deep td {
border: 1px solid;
padding: 8px;
text-align: left;
}
::v-deep th {
font-weight: bold;
}
</style>
6 changes: 6 additions & 0 deletions frontend/pages/group/data/foods.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ import MultiPurposeLabel from "~/components/Domain/ShoppingList/MultiPurposeLabe
import { useLocales } from "~/composables/use-locales";
import { useFoodStore, useLabelStore } from "~/composables/store";
import { VForm } from "~/types/vuetify";
import { MultiPurposeLabelOut } from "~/lib/api/types/labels";
export default defineComponent({
components: { MultiPurposeLabel, RecipeDataAliasManagerDialog },
Expand Down Expand Up @@ -325,6 +326,11 @@ export default defineComponent({
text: i18n.tc("shopping-list.label"),
value: "label",
show: true,
sort: (label1: MultiPurposeLabelOut | null, label2: MultiPurposeLabelOut | null) => {
const label1Name = label1?.name || "";
const label2Name = label2?.name || "";
return label1Name.localeCompare(label2Name);
},
},
{
text: i18n.tc("tool.on-hand"),
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/household/mealplan/planner/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
)"
color="primary"
:icon="$globals.icons.foods"
:submit-disabled="isCreateDisabled"
@submit="
if (newMeal.existing) {
actions.updateOne(newMeal);
Expand All @@ -22,7 +23,6 @@
resetDialog();
"
@close="resetDialog()"
:submitDisabled="isCreateDisabled"
>
<v-card-text>
<v-menu
Expand Down
Loading

0 comments on commit f3dac5a

Please sign in to comment.