mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-07 07:56:34 +00:00
Automation minor fixes (#4569)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
6e67c57035
commit
e23d587033
@ -672,7 +672,8 @@ export function createModel (builder: Builder): void {
|
|||||||
name: tracker.string.TrackerApplication,
|
name: tracker.string.TrackerApplication,
|
||||||
description: tracker.string.ManageWorkflowStatuses,
|
description: tracker.string.ManageWorkflowStatuses,
|
||||||
icon: task.icon.Task,
|
icon: task.icon.Task,
|
||||||
baseClass: tracker.class.Project
|
baseClass: tracker.class.Project,
|
||||||
|
allowedClassic: true
|
||||||
},
|
},
|
||||||
tracker.descriptors.ProjectType
|
tracker.descriptors.ProjectType
|
||||||
)
|
)
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
"SearchApplication": "Поиск кандидата...",
|
"SearchApplication": "Поиск кандидата...",
|
||||||
"Application": "Кандидат",
|
"Application": "Кандидат",
|
||||||
"ApplicationCreateLabel": "Кандидата",
|
"ApplicationCreateLabel": "Кандидата",
|
||||||
"AssignedRecruiter": "Назначенные рекрутер",
|
"AssignedRecruiter": "Назначенный рекрутер",
|
||||||
"SkillLabel": "Навык",
|
"SkillLabel": "Навык",
|
||||||
"SkillsLabel": "Навыки",
|
"SkillsLabel": "Навыки",
|
||||||
"SkillCreateLabel": "Навык",
|
"SkillCreateLabel": "Навык",
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
descriptor: descriptor._id,
|
descriptor: descriptor._id,
|
||||||
description: '',
|
description: '',
|
||||||
tasks: [],
|
tasks: [],
|
||||||
classic
|
classic: descriptor.allowedClassic === true ? classic : false
|
||||||
},
|
},
|
||||||
[],
|
[],
|
||||||
generateId()
|
generateId()
|
||||||
@ -62,6 +62,8 @@
|
|||||||
function selectType (evt: CustomEvent<Ref<ProjectTypeDescriptor>>): void {
|
function selectType (evt: CustomEvent<Ref<ProjectTypeDescriptor>>): void {
|
||||||
descriptor = descriptors.find((it) => it._id === evt.detail)
|
descriptor = descriptors.find((it) => it._id === evt.detail)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
descriptor = descriptors[0]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
@ -76,6 +78,8 @@
|
|||||||
<div class="flex-col flex-gap-2">
|
<div class="flex-col flex-gap-2">
|
||||||
<EditBox bind:value={name} placeholder={task.string.ProjectType} />
|
<EditBox bind:value={name} placeholder={task.string.ProjectType} />
|
||||||
<DropdownLabelsIntl {items} on:selected={selectType} />
|
<DropdownLabelsIntl {items} on:selected={selectType} />
|
||||||
<ToggleWithLabel label={task.string.ClassicProject} bind:on={classic} />
|
{#if descriptor?.allowedClassic === true}
|
||||||
|
<ToggleWithLabel label={task.string.ClassicProject} bind:on={classic} />
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
@ -174,6 +174,7 @@ export interface ProjectTypeDescriptor extends Doc {
|
|||||||
description: IntlString
|
description: IntlString
|
||||||
icon: Asset
|
icon: Asset
|
||||||
editor?: AnyComponent
|
editor?: AnyComponent
|
||||||
|
allowedClassic?: boolean
|
||||||
baseClass: Ref<Class<Task>>
|
baseClass: Ref<Class<Task>>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user