Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<StringEditor
bind:value={search}
size={'large'}
label={process.string.Search}
placeholder={process.string.Search}
kind={'regular'}
justify={'left'}
Expand All @@ -48,6 +49,7 @@
<StringEditor
bind:value={replacement}
size={'large'}
label={process.string.Replacement}
placeholder={process.string.Replacement}
kind={'regular'}
justify={'left'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<StringEditor
bind:value={separator}
size={'large'}
label={process.string.Separator}
placeholder={process.string.Separator}
kind={'regular'}
justify={'left'}
Expand Down
43 changes: 25 additions & 18 deletions plugins/recruit-resources/src/components/CreateCandidate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@
)
}
}

const onsite = hierarchy.findAttribute(recruit.mixin.Candidate, 'onsite')
const remote = hierarchy.findAttribute(recruit.mixin.Candidate, 'remote')
</script>

<FocusHandler {manager} />
Expand Down Expand Up @@ -664,24 +667,28 @@
kind={'regular'}
size={'large'}
/>
<YesNo
disabled={loading}
focusIndex={100}
label={recruit.string.Onsite}
tooltip={recruit.string.WorkLocationPreferences}
bind:value={object.onsite}
kind={'regular'}
size={'large'}
/>
<YesNo
disabled={loading}
focusIndex={101}
label={recruit.string.Remote}
tooltip={recruit.string.WorkLocationPreferences}
bind:value={object.remote}
kind={'regular'}
size={'large'}
/>
{#if onsite?.hidden !== true}
<YesNo
disabled={loading}
focusIndex={100}
label={recruit.string.Onsite}
tooltip={recruit.string.WorkLocationPreferences}
bind:value={object.onsite}
kind={'regular'}
size={'large'}
/>
{/if}
{#if remote?.hidden !== true}
<YesNo
disabled={loading}
focusIndex={101}
label={recruit.string.Remote}
tooltip={recruit.string.WorkLocationPreferences}
bind:value={object.remote}
kind={'regular'}
size={'large'}
/>
{/if}
<Component
is={tags.component.TagsDropdownEditor}
props={{
Expand Down
9 changes: 6 additions & 3 deletions plugins/view-resources/src/components/EnumArrayEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
import core, { ArrOf, EnumOf } from '@hcengineering/core'
import type { IntlString } from '@hcengineering/platform'
import { createQuery } from '@hcengineering/presentation'
import { DropdownLabels, DropdownTextItem } from '@hcengineering/ui'
import { ButtonKind, ButtonSize, DropdownLabels, DropdownTextItem } from '@hcengineering/ui'

export let label: IntlString
export let value: string[] = []
export let type: ArrOf<string>
export let onChange: (value: string[]) => void

export let kind: ButtonKind = 'link'
export let size: ButtonSize = 'large'

let items: DropdownTextItem[] = []

const query = createQuery()
Expand All @@ -48,8 +51,8 @@
{label}
useFlexGrow={true}
justify={'left'}
size={'large'}
kind={'link'}
{kind}
{size}
width={'100%'}
multiselect
autoSelect={false}
Expand Down
3 changes: 2 additions & 1 deletion plugins/view-resources/src/components/StringEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { EditBox, Label, showPopup, eventToHTMLElement, Button } from '@hcengineering/ui'
import EditBoxPopup from './EditBoxPopup.svelte'

// export let label: IntlString
export let label: IntlString
export let placeholder: IntlString
export let value: string
export let autoFocus: boolean = false
Expand All @@ -45,6 +45,7 @@
{size}
{justify}
{width}
showTooltip={{ label }}
on:click={(ev) => {
if (!shown && !readonly) {
showPopup(EditBoxPopup, { value }, eventToHTMLElement(ev), (res) => {
Expand Down
Loading