|
58 | 58 |
|
59 | 59 | const client = getClient()
|
60 | 60 |
|
61 |
| - async function changePlannedEffectiveDate (plannedEffectiveDate: Timestamp) { |
62 |
| - if (!$controlledDocument) { |
63 |
| - return |
64 |
| - } |
65 |
| -
|
66 |
| - await client.update($controlledDocument, { plannedEffectiveDate }) |
67 |
| - } |
68 |
| -
|
69 |
| - let selectedDate: Timestamp = |
70 |
| - $controlledDocument?.plannedEffectiveDate != null && $controlledDocument?.plannedEffectiveDate > 0 |
71 |
| - ? $controlledDocument.plannedEffectiveDate |
72 |
| - : Date.now() |
73 |
| -
|
74 |
| - let selected: IntlString | undefined = undefined |
75 |
| - if ($controlledDocument?.plannedEffectiveDate === 0) { |
76 |
| - selected = documentsRes.string.EffectiveImmediately |
77 |
| - } else if ($controlledDocument?.plannedEffectiveDate != null) { |
78 |
| - selected = documentsRes.string.EffectiveOn |
79 |
| - } |
80 |
| -
|
81 |
| - async function changeSelectedDate (ev: CustomEvent) { |
82 |
| - if (ev.detail !== undefined) { |
83 |
| - selectedDate = ev.detail |
84 |
| - await changePlannedEffectiveDate(ev.detail) |
85 |
| - selected = documentsRes.string.EffectiveOn |
86 |
| - } |
87 |
| - } |
| 61 | + // async function changePlannedEffectiveDate (plannedEffectiveDate: Timestamp) { |
| 62 | + // if (!$controlledDocument) { |
| 63 | + // return |
| 64 | + // } |
| 65 | +
|
| 66 | + // await client.update($controlledDocument, { plannedEffectiveDate }) |
| 67 | + // } |
| 68 | +
|
| 69 | + // let selectedDate: Timestamp = |
| 70 | + // $controlledDocument?.plannedEffectiveDate != null && $controlledDocument?.plannedEffectiveDate > 0 |
| 71 | + // ? $controlledDocument.plannedEffectiveDate |
| 72 | + // : Date.now() |
| 73 | +
|
| 74 | + // let selected: IntlString | undefined = undefined |
| 75 | + // if ($controlledDocument?.plannedEffectiveDate === 0) { |
| 76 | + // selected = documentsRes.string.EffectiveImmediately |
| 77 | + // } else if ($controlledDocument?.plannedEffectiveDate != null) { |
| 78 | + // selected = documentsRes.string.EffectiveOn |
| 79 | + // } |
| 80 | +
|
| 81 | + // async function changeSelectedDate (ev: CustomEvent) { |
| 82 | + // if (ev.detail !== undefined) { |
| 83 | + // selectedDate = ev.detail |
| 84 | + // await changePlannedEffectiveDate(ev.detail) |
| 85 | + // selected = documentsRes.string.EffectiveOn |
| 86 | + // } |
| 87 | + // } |
88 | 88 |
|
89 | 89 | const reviewIntervals: DropdownTextItem[] = []
|
90 | 90 | for (const interval of periodicReviewIntervals) {
|
|
254 | 254 | gap="none"
|
255 | 255 | />
|
256 | 256 | </div>
|
257 |
| - <header class="fs-title text-lg my-4"> |
| 257 | + <header class="fs-title text-lg mt-4"> |
258 | 258 | <Label label={documentsRes.string.EffectiveDocumentLifecycle} />
|
259 | 259 | </header>
|
260 |
| - <span class="fs-title text-normal"> |
| 260 | + <!-- <span class="fs-title text-normal"> |
261 | 261 | <Label label={documentsRes.string.EffectiveDate} />
|
262 | 262 | </span>
|
263 | 263 | <div>
|
|
298 | 298 | </div>
|
299 | 299 | </RadioButton>
|
300 | 300 | </div>
|
301 |
| - </div> |
| 301 | + </div> --> |
302 | 302 | <div class="flex-row-center flex-gap-2">
|
303 | 303 | <span class="whitespace-nowrap fs-title text-normal">
|
304 | 304 | <Label label={documentsRes.string.PeriodicReviewToBeCompleted} />
|
|
0 commit comments