Skip to content

Commit

Permalink
Remove duplicated column, fix adding surveys to vacancies (#7422)
Browse files Browse the repository at this point in the history
* hide second company column in vacancies viewlet

Signed-off-by: Nikolay Chunosov <[email protected]>

* fix adding surveys to vacancy

Signed-off-by: Nikolay Chunosov <[email protected]>

---------

Signed-off-by: Nikolay Chunosov <[email protected]>
  • Loading branch information
Chunosov authored Dec 10, 2024
1 parent 087cf2a commit 639df5b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models/recruit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export function createModel (builder: Builder): void {
}
],
configOptions: {
hiddenKeys: ['name', 'space', 'modifiedOn'],
hiddenKeys: ['name', 'space', 'modifiedOn', 'company'],
sortable: true
},
viewOptions: {
Expand Down
10 changes: 9 additions & 1 deletion plugins/recruit-resources/src/components/EditVacancy.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,15 @@
<VacancyApplications objectId={object._id} {readonly} />
</div>
<div class="w-full mt-6">
<Component is={survey.component.PollCollection} props={{ object, label: survey.string.Polls }} />
<Component
is={survey.component.PollCollection}
props={{
objectId: object._id,
_class: object._class,
space: object.space,
polls: object.polls
}}
/>
</div>
<div class="w-full mt-6">
<Component is={tracker.component.RelatedIssuesSection} props={{ object, label: tracker.string.RelatedIssues }} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
const client = getClient()
const pollId = await client.addCollection(survey.class.Poll, space, objectId, _class, 'polls', makePollData(source))
const poll = await client.findOne(survey.class.Survey, { _id: pollId })
const poll = await client.findOne(survey.class.Poll, { _id: pollId })
if (poll === undefined) {
console.error(`Could not find just created poll ${pollId}.`)
return
Expand Down

0 comments on commit 639df5b

Please sign in to comment.