improved properties dialog

This commit is contained in:
vabene1111
2025-07-28 18:20:24 +02:00
parent 9d8acdc41f
commit 750115cab5
35 changed files with 5463 additions and 5384 deletions

View File

@@ -36,7 +36,7 @@
</v-card>
<v-dialog max-width="900px" v-model="dialog">
<v-card v-if="dialogProperty">
<v-card v-if="dialogProperty" :loading="loading">
<v-closable-card-title :title="`${dialogProperty.propertyAmountTotal} ${dialogProperty.unit} ${dialogProperty.name}`" :sub-title="$t('total')" icon="$properties"
v-model="dialog"></v-closable-card-title>
<v-card-text>
@@ -60,8 +60,11 @@
<model-edit-dialog model="UnitConversion" @create="refreshRecipe()"
:item-defaults="{baseAmount: 1, baseUnit: fv.missing_conversion.base_unit, convertedUnit: fv.missing_conversion.converted_unit, food: fv.food}"></model-edit-dialog>
</v-chip>
<v-chip color="warning" prepend-icon="$edit" class="cursor-pointer" :to="{name: 'ModelEditPage', params: {model: 'Recipe', id: recipe.id}}" v-else-if="fv.missing_unit">
{{ $t('NoUnit') }}
</v-chip>
<v-chip color="error" prepend-icon="$edit" class="cursor-pointer" v-else>
{{ $t('Edit') }}
{{ $t('MissingProperties') }}
<model-edit-dialog model="Food" :item-id="fv.food.id" @update:model-value="refreshRecipe()"></model-edit-dialog>
</v-chip>
</template>
@@ -182,6 +185,8 @@ const sourceSelectedToShow = ref<'recipe' | 'food'>("food")
const dialog = ref(false)
const dialogProperty = ref<undefined | PropertyWrapper>(undefined)
const loading = ref(false)
onMounted(() => {
if (!hasFoodProperties) {
sourceSelectedToShow.value = "recipe"
@@ -193,6 +198,7 @@ onMounted(() => {
*/
function refreshRecipe() {
let api = new ApiApi()
loading.value = true
api.apiRecipeRetrieve({id: recipe.value.id!}).then(r => {
recipe.value = r
@@ -205,6 +211,8 @@ function refreshRecipe() {
}
})
}
loading.value = false
})
}).catch(err => {
useMessageStore().addError(ErrorMessageType.FETCH_ERROR, err)

View File

@@ -147,6 +147,7 @@
"Merge": "",
"Merge_Keyword": "",
"Message": "",
"MissingProperties": "",
"Month": "",
"Move": "",
"MoveCategory": "",
@@ -169,6 +170,7 @@
"Next_Day": "",
"Next_Period": "",
"NoCategory": "",
"NoUnit": "",
"No_ID": "",
"No_Results": "",
"NotInShopping": "",

View File

@@ -141,6 +141,7 @@
"Meal_Types": "Видове хранене",
"Merge": "Обединяване",
"Merge_Keyword": "Обединяване на ключова дума",
"MissingProperties": "",
"Month": "Месец",
"Move": "Премести",
"MoveCategory": "Премести към: ",
@@ -162,6 +163,7 @@
"Next_Day": "Следващия ден",
"Next_Period": "Следващ период",
"NoCategory": "Няма избрана категория.",
"NoUnit": "",
"No_ID": "Идентификатора не е намерен, не може да се изтрие.",
"No_Results": "Няма резултати",
"NotInShopping": "{food} не е в списъка ви за пазаруване.",

View File

@@ -198,6 +198,7 @@
"Merge": "Unificar",
"Merge_Keyword": "Fusioneu paraula clau",
"Message": "Missatge",
"MissingProperties": "",
"Month": "Mes",
"Move": "Moure",
"MoveCategory": "Moure a: ",
@@ -227,6 +228,7 @@
"Next_Period": "Període següent",
"NoCategory": "No s'ha seleccionat categoria.",
"NoMoreUndo": "No hi ha canvis per desar.",
"NoUnit": "",
"No_ID": "No s'ha trobat l'ID, no es pot eliminar.",
"No_Results": "No hi ha resultats",
"NotInShopping": "{food} no està a la teva llista de la compra.",

View File

@@ -196,6 +196,7 @@
"Merge": "Spojit",
"Merge_Keyword": "Sloučit štítek",
"Message": "Zpráva",
"MissingProperties": "",
"Month": "Měsíc",
"Move": "Přesunout",
"MoveCategory": "Přesunout do: ",
@@ -224,6 +225,7 @@
"Next_Day": "Následující den",
"Next_Period": "Další období",
"NoCategory": "Není vybrána žádná kategorie.",
"NoUnit": "",
"No_ID": "ID nenalezeno, odstranění není možné.",
"No_Results": "Žádné výsledky",
"NotInShopping": "{food} není na vašem nákupním seznamu.",

View File

@@ -198,6 +198,7 @@
"Merge": "Sammenflet",
"Merge_Keyword": "Sammenflet nøgleord",
"Message": "Besked",
"MissingProperties": "",
"Month": "Måned",
"Move": "Flyt",
"MoveCategory": "Flyt til: ",
@@ -227,6 +228,7 @@
"Next_Period": "Næste periode",
"NoCategory": "Ingen kategori valgt.",
"NoMoreUndo": "Ingen ændringer at fortryde.",
"NoUnit": "",
"No_ID": "ID findes ikke, kan ikke slette.",
"No_Results": "Ingen resultater",
"NotInShopping": "{food} er ikke i din indkøbsliste.",

File diff suppressed because it is too large Load Diff

View File

@@ -198,6 +198,7 @@
"Merge": "Συγχώνευση",
"Merge_Keyword": "Συγχώνευση λέξης-κλειδί",
"Message": "Μήνυμα",
"MissingProperties": "",
"Month": "Μήνας",
"Move": "Μετακίνηση",
"MoveCategory": "Μετακίνηση σε: ",
@@ -227,6 +228,7 @@
"Next_Period": "Επόμενη περίοδος",
"NoCategory": "Δεν έχει επιλεγεί κατηγορία.",
"NoMoreUndo": "Δεν υπάρχουν αλλαγές για ανέρεση.",
"NoUnit": "",
"No_ID": "Το ID δεν βρέθηκε, αδύνατη η διαγραφή.",
"No_Results": "Δεν υπάρχουν αποτελέσματα",
"NotInShopping": "Το φαγητό { food} δεν είναι στη λίστα αγορών σας.",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -192,6 +192,7 @@
"Merge": "Yhdistä",
"Merge_Keyword": "Yhdistä Avainsana",
"Message": "Viesti",
"MissingProperties": "",
"Month": "Kuukausi",
"Move": "Siirry",
"MoveCategory": "Siirrä paikkaan: ",
@@ -216,6 +217,7 @@
"Next_Period": "Seuraava Jakso",
"NoCategory": "Luokkaa ei ole valittu.",
"NoMoreUndo": "Ei peruttavia muutoksia.",
"NoUnit": "",
"No_ID": "Poistaminen epäonnistui, ID:tä ei löytynyt.",
"No_Results": "Ei Tuloksia",
"NotInShopping": "{food} ei ole ostoslistalla.",

View File

@@ -197,6 +197,7 @@
"Merge": "Fusionner",
"Merge_Keyword": "Fusionner le mot-clé",
"Message": "Message",
"MissingProperties": "",
"Month": "Mois",
"Move": "Déplacer",
"MoveCategory": "Déplacer vers : ",
@@ -226,6 +227,7 @@
"Next_Period": "Prochaine période",
"NoCategory": "Pas de catégorie sélectionnée.",
"NoMoreUndo": "Aucun changement à annuler.",
"NoUnit": "",
"No_ID": "ID introuvable, impossible de supprimer.",
"No_Results": "Aucun résultat",
"NotInShopping": "Laliment {food} nest pas dans votre liste de courses.",

View File

@@ -198,6 +198,7 @@
"Merge": "איחוד",
"Merge_Keyword": "איחוד מילת מפתח",
"Message": "הודעה",
"MissingProperties": "",
"Month": "חודש",
"Move": "העברה",
"MoveCategory": "העבר אל: ",
@@ -227,6 +228,7 @@
"Next_Period": "התקופה הבאה",
"NoCategory": "לא נבחרה קטגוריה.",
"NoMoreUndo": "אין עוד שינויים לשחזור.",
"NoUnit": "",
"No_ID": "מזהה לא נמצא, בלתי ניתן למחיקה.",
"No_Results": "אין תוצאות",
"NotInShopping": "{food} אינו רשימת הקניות.",

View File

@@ -198,6 +198,7 @@
"Merge": "Spoji",
"Merge_Keyword": "Spoji ključnu riječ",
"Message": "Poruka",
"MissingProperties": "",
"Month": "Mjesec",
"Move": "Premjesti",
"MoveCategory": "Premjesti u: ",
@@ -227,6 +228,7 @@
"Next_Period": "Slijedeće razdoblje",
"NoCategory": "Nije odabrana kategorija.",
"NoMoreUndo": "Nema promjena koje se mogu poništiti.",
"NoUnit": "",
"No_ID": "ID nije pronađen, ne može se izbrisati.",
"No_Results": "Nema rezultata",
"NotInShopping": "{food} nije na vašem popisu za kupovinu.",

View File

@@ -179,6 +179,7 @@
"Merge": "Összefűzés",
"Merge_Keyword": "Kulcsszó összevonása",
"Message": "Üzenet",
"MissingProperties": "",
"Month": "Hónap",
"Move": "Mozgatás",
"MoveCategory": "Áthelyezés ide: ",
@@ -204,6 +205,7 @@
"Next_Day": "Következő nap",
"Next_Period": "Következő periódus",
"NoCategory": "Nincs kategória kiválasztva.",
"NoUnit": "",
"No_ID": "Azonosító nem található, ezért nem törölhető.",
"No_Results": "Nincsenek találatok",
"NotInShopping": "{food} nincs a bevásárlólistáján.",

View File

@@ -61,6 +61,7 @@
"Meal_Plan": "Ճաշացուցակ",
"Merge": "Միացնել",
"Merge_Keyword": "Միացնել բանալի բառը",
"MissingProperties": "",
"Move": "Տեղափոխել",
"Move_Food": "Տեղափոխել սննդամթերքը",
"Move_Keyword": "Տեղափոխել բանալի բառը",
@@ -69,6 +70,7 @@
"New_Food": "Նոր սննդամթերք",
"New_Keyword": "Նոր բանալի բառ",
"New_Recipe": "Նոր բաղադրատոմս",
"NoUnit": "",
"No_Results": "Արդյունքներ չկան",
"Nutrition": "",
"Ok": "",

View File

@@ -164,6 +164,7 @@
"Merge": "Menggabungkan",
"Merge_Keyword": "Gabungkan Kata Kunci",
"Message": "",
"MissingProperties": "",
"Month": "",
"Move": "Bergerak",
"MoveCategory": "",
@@ -188,6 +189,7 @@
"Next_Day": "",
"Next_Period": "",
"NoCategory": "",
"NoUnit": "",
"No_ID": "",
"No_Results": "",
"NotInShopping": "",

View File

@@ -197,6 +197,7 @@
"Merge": "",
"Merge_Keyword": "",
"Message": "",
"MissingProperties": "",
"Month": "",
"Move": "",
"MoveCategory": "",
@@ -226,6 +227,7 @@
"Next_Period": "",
"NoCategory": "",
"NoMoreUndo": "",
"NoUnit": "",
"No_ID": "",
"No_Results": "",
"NotInShopping": "",

File diff suppressed because it is too large Load Diff

View File

@@ -181,6 +181,7 @@
"Merge": "",
"Merge_Keyword": "Sujungti raktažodį",
"Message": "",
"MissingProperties": "",
"Month": "",
"Move": "",
"MoveCategory": "",
@@ -207,6 +208,7 @@
"Next_Day": "",
"Next_Period": "",
"NoCategory": "",
"NoUnit": "",
"No_ID": "",
"No_Results": "",
"NotInShopping": "",

View File

@@ -198,6 +198,7 @@
"Merge": "",
"Merge_Keyword": "",
"Message": "",
"MissingProperties": "",
"Month": "",
"Move": "",
"MoveCategory": "",
@@ -227,6 +228,7 @@
"Next_Period": "",
"NoCategory": "",
"NoMoreUndo": "",
"NoUnit": "",
"No_ID": "",
"No_Results": "",
"NotInShopping": "",

View File

@@ -188,6 +188,7 @@
"Merge": "Slå sammen",
"Merge_Keyword": "Slå sammen nøkkelord",
"Message": "Melding",
"MissingProperties": "",
"Month": "Måned",
"Move": "Flytt",
"MoveCategory": "Flytt til: ",
@@ -213,6 +214,7 @@
"Next_Period": "Neste periode",
"NoCategory": "Ingen kategori valgt.",
"NoMoreUndo": "Ingen endringer å angre.",
"NoUnit": "",
"No_ID": "ID ikke funnet, kan ikke slette.",
"No_Results": "Ingen resultat",
"NotInShopping": "{food} er ikke i handlelisten din.",

File diff suppressed because it is too large Load Diff

View File

@@ -199,6 +199,7 @@
"Merge": "Scal",
"Merge_Keyword": "Scal słowa kluczowe",
"Message": "Wiadomość",
"MissingProperties": "",
"Month": "Miesiąc",
"Move": "Przenieś",
"MoveCategory": "Przenieś do: ",
@@ -228,6 +229,7 @@
"Next_Period": "Następny okres",
"NoCategory": "Nie wybrano kategorii.",
"NoMoreUndo": "Brak zmian do wycofania.",
"NoUnit": "",
"No_ID": "ID nie znaleziono, nie można usunąć.",
"No_Results": "Brak wyników",
"NotInShopping": "{food} nie ma na Twojej liście zakupów.",

View File

@@ -153,6 +153,7 @@
"Meal_Types": "Tipos de refeições",
"Merge": "Juntar",
"Merge_Keyword": "Unir palavra-chave",
"MissingProperties": "",
"Month": "Mês",
"Move": "Mover",
"MoveCategory": "Mover para: ",
@@ -173,6 +174,7 @@
"Next_Period": "Próximo período",
"NoCategory": "Nenhuma categoria selecionada.",
"NoMoreUndo": "Nenhuma alteração para ser desfeita.",
"NoUnit": "",
"No_ID": "identificação não encontrada, impossível eliminar.",
"No_Results": "Sem resultados",
"NotInShopping": "{food} não está na sua lista de compras.",

File diff suppressed because it is too large Load Diff

View File

@@ -173,6 +173,7 @@
"Merge": "Unire",
"Merge_Keyword": "Unește cuvânt cheie",
"Message": "Mesaj",
"MissingProperties": "",
"Month": "Lună",
"Move": "Mută",
"MoveCategory": "Mută la: ",
@@ -197,6 +198,7 @@
"Next_Day": "Ziua următoare",
"Next_Period": "Perioada următoare",
"NoCategory": "Nicio categorie selectată.",
"NoUnit": "",
"No_ID": "ID-ul nu a fost găsit, nu se poate șterge.",
"No_Results": "Fără rezultate",
"NotInShopping": "{food} nu se află în lista de cumpărături.",

View File

@@ -185,6 +185,7 @@
"Merge": "Объединить",
"Merge_Keyword": "Объеденить ключевые слова",
"Message": "Сообщение",
"MissingProperties": "",
"Month": "Месяц",
"Move": "Переместить",
"MoveCategory": "Переместить в: ",
@@ -209,6 +210,7 @@
"Next_Period": "Следующий период",
"NoCategory": "Категория не выбрана.",
"NoMoreUndo": "Нет изменений, которые можно было бы отменить.",
"NoUnit": "",
"No_ID": "ID не найден, удаление не возможно.",
"No_Results": "Результаты отсутствуют",
"NotInShopping": "{food} отсутствует в вашем списке покупок.",

File diff suppressed because it is too large Load Diff

View File

@@ -199,6 +199,7 @@
"Merge": "Slå samman",
"Merge_Keyword": "Slå samman nyckelord",
"Message": "Meddelande",
"MissingProperties": "",
"Month": "Månad",
"Move": "Flytta",
"MoveCategory": "Flytta till: ",
@@ -228,6 +229,7 @@
"Next_Period": "Nästa period",
"NoCategory": "Ingen kategori vald.",
"NoMoreUndo": "Inga ändringar att ångra.",
"NoUnit": "",
"No_ID": "ID hittades inte, kan inte radera.",
"No_Results": "Inget resultat",
"NotInShopping": "{food} finns inte i din inköpslista.",

View File

@@ -198,6 +198,7 @@
"Merge": "Birleştir",
"Merge_Keyword": "Anahtar Kelimeyi Birleştir",
"Message": "Mesaj",
"MissingProperties": "",
"Month": "Ay",
"Move": "Taşı",
"MoveCategory": "Taşı: ",
@@ -227,6 +228,7 @@
"Next_Period": "Sonraki Dönem",
"NoCategory": "Hiçbir kategori seçilmedi.",
"NoMoreUndo": "Yapılacak değişiklik yok.",
"NoUnit": "",
"No_ID": "ID bulunamadı, silinemez.",
"No_Results": "Sonuç Yok",
"NotInShopping": "{food} alışveriş listenizde yok.",

View File

@@ -170,6 +170,7 @@
"Meal_Types": "Типи страви",
"Merge": "Об'єднати",
"Merge_Keyword": "Об'єднати Ключове слово",
"MissingProperties": "",
"Month": "Місяць",
"Move": "Перемістити",
"MoveCategory": "Перемістити До: ",
@@ -193,6 +194,7 @@
"Next_Period": "Наступний період",
"NoCategory": "Жодна категорія не вибрана.",
"NoMoreUndo": "Відсутні зміни для скасування.",
"NoUnit": "",
"No_ID": "ID не знайдено, неможливо видалити.",
"No_Results": "Немає Результату",
"NotInShopping": "{food} немає в вашому списку покупок.",

View File

@@ -198,6 +198,7 @@
"Merge": "合并",
"Merge_Keyword": "合并关键词",
"Message": "信息",
"MissingProperties": "",
"Month": "月份",
"Move": "移动",
"MoveCategory": "移动到: ",
@@ -227,6 +228,7 @@
"Next_Period": "下期",
"NoCategory": "未选择分类。",
"NoMoreUndo": "没有可撤消的更改。",
"NoUnit": "",
"No_ID": "未找到标识,不能删除。",
"No_Results": "没有结果",
"NotInShopping": "购物清单中没有 {food}。",

View File

@@ -198,6 +198,7 @@
"Merge": "合併",
"Merge_Keyword": "合併關鍵字",
"Message": "消息",
"MissingProperties": "",
"Month": "月",
"Move": "移動",
"MoveCategory": "移動分類 ",
@@ -227,6 +228,7 @@
"Next_Period": "下一期間",
"NoCategory": "未選擇分類。",
"NoMoreUndo": "沒有可撤消的更改。",
"NoUnit": "",
"No_ID": "未找到標識,不能刪除。",
"No_Results": "無結果",
"NotInShopping": "購物清單中沒有 {food}。",