-
+
{
saved = evt.detail
}}
diff --git a/plugins/contact-resources/src/components/UserBoxList.svelte b/plugins/contact-resources/src/components/UserBoxList.svelte
index 85a1f09c20..c838460ab7 100644
--- a/plugins/contact-resources/src/components/UserBoxList.svelte
+++ b/plugins/contact-resources/src/components/UserBoxList.svelte
@@ -103,6 +103,7 @@
{kind}
{size}
{justify}
+ disabled={readonly}
showTooltip={label ? { label, direction: labelDirection } : undefined}
on:click={addPerson}
>
diff --git a/plugins/recruit-resources/src/components/Applications.svelte b/plugins/recruit-resources/src/components/Applications.svelte
index 07ae961671..c5985faa76 100644
--- a/plugins/recruit-resources/src/components/Applications.svelte
+++ b/plugins/recruit-resources/src/components/Applications.svelte
@@ -24,8 +24,8 @@
import SectionEmpty from './SectionEmpty.svelte'
export let objectId: Ref
-
export let applications: number
+ export let readonly: boolean = false
const createApp = (ev: MouseEvent): void => {
showPopup(CreateApplication, { candidate: objectId, preserveCandidate: true }, ev.target as HTMLElement)
@@ -46,7 +46,9 @@
bind:loading
bind:preference
/>
-
+ {#if !readonly}
+
+ {/if}
@@ -58,15 +60,18 @@
config={preference?.config ?? viewlet.config}
query={{ attachedTo: objectId, ...(viewlet?.baseQuery ?? {}) }}
loadingProps={{ length: applications }}
+ {readonly}
/>
{:else}
-
-
-
-
-
+ {#if !readonly}
+
+
+
+
+
+ {/if}
{/if}
diff --git a/plugins/recruit-resources/src/components/EditVacancy.svelte b/plugins/recruit-resources/src/components/EditVacancy.svelte
index e1d401c12c..1c367c8364 100644
--- a/plugins/recruit-resources/src/components/EditVacancy.svelte
+++ b/plugins/recruit-resources/src/components/EditVacancy.svelte
@@ -31,6 +31,7 @@
export let _id: Ref
export let embedded: boolean = false
+ export let readonly = false
let object: Required
let rawName: string = ''
@@ -140,6 +141,7 @@
{/if}
@@ -151,6 +153,7 @@
kind={'large-style'}
focusable
autoFocus={!embedded}
+ disabled={readonly}
on:blur={save}
/>
@@ -160,14 +163,16 @@
{/if}
-