From fc7605f279efbc969912701ba7a297112f7e9256 Mon Sep 17 00:00:00 2001 From: Anna No Date: Mon, 18 Apr 2022 23:28:59 +0700 Subject: [PATCH] Board: Update Date Presenter to reuse as presenter Signed-off-by: Anna No --- .../src/components/editor/CardDetails.svelte | 8 +++-- .../presenters/DatePresenter.svelte | 32 +++++++++---------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/plugins/board-resources/src/components/editor/CardDetails.svelte b/plugins/board-resources/src/components/editor/CardDetails.svelte index 078f2056f0..d2c7e38c33 100644 --- a/plugins/board-resources/src/components/editor/CardDetails.svelte +++ b/plugins/board-resources/src/components/editor/CardDetails.svelte @@ -14,7 +14,7 @@ // limitations under the License. --> -{#if date} +{#if value}
- +
- {#if date.startDate} - + {#if value.startDate} + {/if} - {#if date.startDate && date.dueDate}-{/if} - {#if date.dueDate} - + {#if value.startDate && value.dueDate}-{/if} + {#if value.dueDate} + {/if}