mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 20:13:20 +00:00
EZQMS-236: QE templates >> Have the ability to make a section mandatory (#3581)
Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
parent
659f3dcd40
commit
281cd65f4a
@ -52,6 +52,7 @@
|
||||
on:click
|
||||
on:delete
|
||||
on:action
|
||||
on:valid
|
||||
>
|
||||
<slot />
|
||||
</Ctor>
|
||||
@ -67,6 +68,7 @@
|
||||
on:click
|
||||
on:delete
|
||||
on:action
|
||||
on:valid
|
||||
/>
|
||||
{/if}
|
||||
</ErrorBoundary>
|
||||
|
@ -75,6 +75,11 @@
|
||||
function openFile () {
|
||||
inputFile.click()
|
||||
}
|
||||
|
||||
function updateContent (evt: CustomEvent) {
|
||||
attachments = evt.detail.length
|
||||
dispatch('attachments', evt.detail)
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="antiSection" use:resizeObserver={(element) => (wSection = element.clientWidth)}>
|
||||
@ -151,9 +156,7 @@
|
||||
options={{ sort: { pinned: -1 } }}
|
||||
query={{ ...query, attachedTo: objectId }}
|
||||
loadingProps={{ length: attachments ?? 0 }}
|
||||
on:content={(evt) => {
|
||||
attachments = evt.detail.length
|
||||
}}
|
||||
on:content={updateContent}
|
||||
{readonly}
|
||||
/>
|
||||
</Scroller>
|
||||
@ -175,9 +178,7 @@
|
||||
options={{ sort: { pinned: -1 } }}
|
||||
query={{ ...query, attachedTo: objectId }}
|
||||
loadingProps={{ length: attachments ?? 0 }}
|
||||
on:content={(evt) => {
|
||||
attachments = evt.detail.length
|
||||
}}
|
||||
on:content={updateContent}
|
||||
{readonly}
|
||||
/>
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user