From 69c66667c2bcec63f1ea8aa67f124dd726ac4383 Mon Sep 17 00:00:00 2001 From: Victor Ilyushchenko Date: Tue, 18 Feb 2025 20:32:46 +0300 Subject: [PATCH] EQMS-1440: disable delayed qms doc effectiveness and review interval (#8049) * EQMS-1440: disable delayed qms doc effectiveness and review interval Signed-off-by: Victor Ilyushchenko * ff Signed-off-by: Victor Ilyushchenko * ff Signed-off-by: Victor Ilyushchenko --------- Signed-off-by: Victor Ilyushchenko --- .../components/document/EditDocRelease.svelte | 52 +++++++++---------- .../sanity/tests/documents/documents.spec.ts | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) 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" /> -
+
- +