From e8f65455b82c34705b47bbc3ffdb528da312ec5f Mon Sep 17 00:00:00 2001 From: wvffle Date: Fri, 5 Aug 2022 23:33:33 +0000 Subject: [PATCH] Migrate EditList.vue --- front/src/components/library/EditCard.vue | 1 + front/src/components/library/EditList.vue | 109 ++++++++++------------ front/src/types.ts | 4 +- 3 files changed, 51 insertions(+), 63 deletions(-) diff --git a/front/src/components/library/EditCard.vue b/front/src/components/library/EditCard.vue index d2d9b2d30..0096cf053 100644 --- a/front/src/components/library/EditCard.vue +++ b/front/src/components/library/EditCard.vue @@ -98,6 +98,7 @@ const updatedFields = computed(() => { if (state?.[id]) { const oldState = state[id] + console.log(oldState) result.old = oldState result.oldRepr = getValueRepr(typeof oldState === 'string' ? oldState : oldState?.value) ?? '' diff --git a/front/src/components/library/EditList.vue b/front/src/components/library/EditList.vue index acd253f36..ede66661c 100644 --- a/front/src/components/library/EditList.vue +++ b/front/src/components/library/EditList.vue @@ -1,3 +1,49 @@ + + - - diff --git a/front/src/types.ts b/front/src/types.ts index 753230f7b..c720190d6 100644 --- a/front/src/types.ts +++ b/front/src/types.ts @@ -407,8 +407,8 @@ export interface ReviewState { export interface Review { uuid: string - is_applied: boolean - is_approved: boolean + is_applied: boolean | null + is_approved: boolean | null created_by: Actor previous_state: ReviewState payload: ReviewState