diff --git a/plugins/contact-resources/src/components/AssigneeBox.svelte b/plugins/contact-resources/src/components/AssigneeBox.svelte index a3a0b4aaea..d7f0600ff7 100644 --- a/plugins/contact-resources/src/components/AssigneeBox.svelte +++ b/plugins/contact-resources/src/components/AssigneeBox.svelte @@ -184,7 +184,7 @@ {getName(client.getHierarchy(), selected)} {/if} {:else} -
+
{#if icon}
diff --git a/plugins/contact-resources/src/components/EditOrganizationPanel.svelte b/plugins/contact-resources/src/components/EditOrganizationPanel.svelte index 27a821efc8..789d2ee132 100644 --- a/plugins/contact-resources/src/components/EditOrganizationPanel.svelte +++ b/plugins/contact-resources/src/components/EditOrganizationPanel.svelte @@ -97,6 +97,7 @@ on:close={() => { dispatch('close') }} + withoutInput={readonly} > @@ -106,7 +107,7 @@ {#if dir === 'column'} - + {/if} @@ -117,14 +118,16 @@ -
@@ -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} -
- +
diff --git a/plugins/recruit-resources/src/components/VacancyApplications.svelte b/plugins/recruit-resources/src/components/VacancyApplications.svelte index 7344c51851..9d6260e55e 100644 --- a/plugins/recruit-resources/src/components/VacancyApplications.svelte +++ b/plugins/recruit-resources/src/components/VacancyApplications.svelte @@ -26,6 +26,7 @@ import SectionEmpty from './SectionEmpty.svelte' export let objectId: Ref + export let readonly = false let applications: number const query = createQuery() @@ -60,7 +61,9 @@ bind:preference bind:loading /> -
{#if applications > 0} @@ -71,6 +74,7 @@ config={preference?.config ?? viewlet.config} query={{ space: objectId }} loadingProps={{ length: applications }} + {readonly} /> {:else} @@ -80,9 +84,11 @@ - - + {#if !readonly} + + + {/if} {/if} diff --git a/plugins/recruit-resources/src/components/VacancyList.svelte b/plugins/recruit-resources/src/components/VacancyList.svelte index 9435189794..58c3c24a34 100644 --- a/plugins/recruit-resources/src/components/VacancyList.svelte +++ b/plugins/recruit-resources/src/components/VacancyList.svelte @@ -72,11 +72,13 @@ {:else} - - - - + {#if !readonly} + + + + + {/if} {/if} diff --git a/plugins/tags-resources/src/components/Tags.svelte b/plugins/tags-resources/src/components/Tags.svelte index f33a451bf0..eff37b91bd 100644 --- a/plugins/tags-resources/src/components/Tags.svelte +++ b/plugins/tags-resources/src/components/Tags.svelte @@ -22,6 +22,7 @@ export let object: Doc export let _class: Ref> export let key: KeyedAttribute + export let readonly: boolean = false const client = getClient() @@ -56,6 +57,7 @@ addRef(evt.detail)} diff --git a/plugins/tags-resources/src/components/TagsEditor.svelte b/plugins/tags-resources/src/components/TagsEditor.svelte index 65c4e972cc..f4c10e6f76 100644 --- a/plugins/tags-resources/src/components/TagsEditor.svelte +++ b/plugins/tags-resources/src/components/TagsEditor.svelte @@ -46,6 +46,7 @@ export let key: KeyedAttribute export let showTitle = true export let schema: '0' | '3' | '9' = key.attr.schema ?? '0' + export let readonly = false let elements: IdMap = new Map() const elementQuery = createQuery() @@ -113,13 +114,15 @@