Automation minor fixes (#4569)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-02-07 21:24:30 +06:00 committed by GitHub
parent 6e67c57035
commit e23d587033
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 4 deletions

View File

@ -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
)

View File

@ -39,7 +39,7 @@
"SearchApplication": "Поиск кандидата...",
"Application": "Кандидат",
"ApplicationCreateLabel": "Кандидата",
"AssignedRecruiter": "Назначенные рекрутер",
"AssignedRecruiter": "Назначенный рекрутер",
"SkillLabel": "Навык",
"SkillsLabel": "Навыки",
"SkillCreateLabel": "Навык",

View File

@ -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>

View File

@ -174,6 +174,7 @@ export interface ProjectTypeDescriptor extends Doc {
description: IntlString
icon: Asset
editor?: AnyComponent
allowedClassic?: boolean
baseClass: Ref<Class<Task>>
}