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

View File

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

View File

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

View File

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