mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-02 13:19:45 +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,
|
||||
description: tracker.string.ManageWorkflowStatuses,
|
||||
icon: task.icon.Task,
|
||||
baseClass: tracker.class.Project
|
||||
baseClass: tracker.class.Project,
|
||||
allowedClassic: true
|
||||
},
|
||||
tracker.descriptors.ProjectType
|
||||
)
|
||||
|
@ -39,7 +39,7 @@
|
||||
"SearchApplication": "Поиск кандидата...",
|
||||
"Application": "Кандидат",
|
||||
"ApplicationCreateLabel": "Кандидата",
|
||||
"AssignedRecruiter": "Назначенные рекрутер",
|
||||
"AssignedRecruiter": "Назначенный рекрутер",
|
||||
"SkillLabel": "Навык",
|
||||
"SkillsLabel": "Навыки",
|
||||
"SkillCreateLabel": "Навык",
|
||||
|
@ -42,7 +42,7 @@
|
||||
descriptor: descriptor._id,
|
||||
description: '',
|
||||
tasks: [],
|
||||
classic
|
||||
classic: descriptor.allowedClassic === true ? classic : false
|
||||
},
|
||||
[],
|
||||
generateId()
|
||||
@ -62,6 +62,8 @@
|
||||
function selectType (evt: CustomEvent<Ref<ProjectTypeDescriptor>>): void {
|
||||
descriptor = descriptors.find((it) => it._id === evt.detail)
|
||||
}
|
||||
|
||||
descriptor = descriptors[0]
|
||||
</script>
|
||||
|
||||
<Card
|
||||
@ -76,6 +78,8 @@
|
||||
<div class="flex-col flex-gap-2">
|
||||
<EditBox bind:value={name} placeholder={task.string.ProjectType} />
|
||||
<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>
|
||||
</Card>
|
||||
|
@ -174,6 +174,7 @@ export interface ProjectTypeDescriptor extends Doc {
|
||||
description: IntlString
|
||||
icon: Asset
|
||||
editor?: AnyComponent
|
||||
allowedClassic?: boolean
|
||||
baseClass: Ref<Class<Task>>
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user