diff --git a/models/recruit/src/index.ts b/models/recruit/src/index.ts index c2b896260c..d3791a6b04 100644 --- a/models/recruit/src/index.ts +++ b/models/recruit/src/index.ts @@ -207,7 +207,6 @@ export function createModel (builder: Builder): void { label: recruit.string.Applications, createLabel: recruit.string.ApplicationCreateLabel, createComponent: recruit.component.CreateApplication, - descriptor: task.viewlet.StatusTable, baseQuery: { doneState: null } @@ -364,6 +363,29 @@ export function createModel (builder: Builder): void { } ] }, + recruit.viewlet.StatusTableApplicant + ) + builder.createDoc( + view.class.Viewlet, + core.space.Model, + { + attachTo: recruit.class.Applicant, + descriptor: view.viewlet.Table, + config: [ + '', + 'attachedTo', + 'assignee', + 'state', + 'comments', + 'attachments', + 'modifiedOn', + { + key: '$lookup.attachedTo.$lookup.channels', + sortingKey: ['$lookup.attachedTo.$lookup.channels.lastMessage', '$lookup.attachedTo.channels'] + } + ], + hiddenKeys: ['name'] + }, recruit.viewlet.TableApplicant ) diff --git a/models/recruit/src/plugin.ts b/models/recruit/src/plugin.ts index 4b8fceba3e..4cc952f0ed 100644 --- a/models/recruit/src/plugin.ts +++ b/models/recruit/src/plugin.ts @@ -103,6 +103,7 @@ export default mergeIds(recruitId, recruit, { viewlet: { TableCandidate: '' as Ref, TableVacancy: '' as Ref, + StatusTableApplicant: '' as Ref, TableApplicant: '' as Ref, CalendarReview: '' as Ref, TableReview: '' as Ref diff --git a/plugins/task-resources/src/components/StatusTableView.svelte b/plugins/task-resources/src/components/StatusTableView.svelte index 90ac588ce6..8744c43af0 100644 --- a/plugins/task-resources/src/components/StatusTableView.svelte +++ b/plugins/task-resources/src/components/StatusTableView.svelte @@ -14,7 +14,7 @@ // limitations under the License. -->