From 2ab51420dc751a22f21d6bd37596699010956dad Mon Sep 17 00:00:00 2001 From: Matthias Lodner Date: Sat, 31 Jan 2026 18:47:30 +0100 Subject: [PATCH] Updated ui for variant and label and fixed error with loading labe for variant. --- common/src/models/variant.rs | 10 +++++- frontend/app/components/article/article.vue | 1 + .../app/components/variant/variantCreate.vue | 26 +++++++++++--- .../app/components/variant/variantRow.vue | 35 ++++++++++++++----- frontend/app/store/labelEditorStore.ts | 2 ++ 5 files changed, 61 insertions(+), 13 deletions(-) diff --git a/common/src/models/variant.rs b/common/src/models/variant.rs index 23d6561..cfa274d 100644 --- a/common/src/models/variant.rs +++ b/common/src/models/variant.rs @@ -19,7 +19,15 @@ pub struct Variant { } async fn from_postgres_row(row: PgRow, pool: &PgPool) -> Variant { - let label = load_label(row.get(0), pool).await; + let label_id_option: Option = row.get(8); + let label: Option