diff --git a/plugins/controlled-documents-resources/src/components/document/EditDocRelease.svelte b/plugins/controlled-documents-resources/src/components/document/EditDocRelease.svelte index efe2ffc34c..06c4edb0d7 100644 --- a/plugins/controlled-documents-resources/src/components/document/EditDocRelease.svelte +++ b/plugins/controlled-documents-resources/src/components/document/EditDocRelease.svelte @@ -58,33 +58,33 @@ const client = getClient() - async function changePlannedEffectiveDate (plannedEffectiveDate: Timestamp) { - if (!$controlledDocument) { - return - } + // async function changePlannedEffectiveDate (plannedEffectiveDate: Timestamp) { + // if (!$controlledDocument) { + // return + // } - await client.update($controlledDocument, { plannedEffectiveDate }) - } + // await client.update($controlledDocument, { plannedEffectiveDate }) + // } - let selectedDate: Timestamp = - $controlledDocument?.plannedEffectiveDate != null && $controlledDocument?.plannedEffectiveDate > 0 - ? $controlledDocument.plannedEffectiveDate - : Date.now() + // let selectedDate: Timestamp = + // $controlledDocument?.plannedEffectiveDate != null && $controlledDocument?.plannedEffectiveDate > 0 + // ? $controlledDocument.plannedEffectiveDate + // : Date.now() - let selected: IntlString | undefined = undefined - if ($controlledDocument?.plannedEffectiveDate === 0) { - selected = documentsRes.string.EffectiveImmediately - } else if ($controlledDocument?.plannedEffectiveDate != null) { - selected = documentsRes.string.EffectiveOn - } + // let selected: IntlString | undefined = undefined + // if ($controlledDocument?.plannedEffectiveDate === 0) { + // selected = documentsRes.string.EffectiveImmediately + // } else if ($controlledDocument?.plannedEffectiveDate != null) { + // selected = documentsRes.string.EffectiveOn + // } - async function changeSelectedDate (ev: CustomEvent) { - if (ev.detail !== undefined) { - selectedDate = ev.detail - await changePlannedEffectiveDate(ev.detail) - selected = documentsRes.string.EffectiveOn - } - } + // async function changeSelectedDate (ev: CustomEvent) { + // if (ev.detail !== undefined) { + // selectedDate = ev.detail + // await changePlannedEffectiveDate(ev.detail) + // selected = documentsRes.string.EffectiveOn + // } + // } const reviewIntervals: DropdownTextItem[] = [] for (const interval of periodicReviewIntervals) { @@ -254,10 +254,10 @@ gap="none" /> -
+
- +