update draft issue
This commit is contained in:
@@ -451,11 +451,18 @@ const PROMPTS = {
|
||||
*/
|
||||
const drafts = (f.postings || []).filter((p) => p.status === 'draft');
|
||||
if (drafts.length) {
|
||||
out.push({
|
||||
label: drafts.length === 1 ? `Continue the ${drafts[0].title} draft` : `${drafts.length} drafts to finish`,
|
||||
prompt: 'Which positions are still in draft?',
|
||||
capability: 'position-drafts',
|
||||
});
|
||||
out.push(drafts.length === 1
|
||||
/* Names the draft, so the answer continues *that* record in the panel
|
||||
rather than listing every draft and sending the reader to a form. */
|
||||
? {
|
||||
label: `Continue the ${drafts[0].title} draft`,
|
||||
prompt: `Continue the ${drafts[0].title} draft`,
|
||||
}
|
||||
: {
|
||||
label: `${drafts.length} drafts to finish`,
|
||||
prompt: 'Which positions are still in draft?',
|
||||
capability: 'position-drafts',
|
||||
});
|
||||
}
|
||||
|
||||
const current = workforce?.currentPositionId
|
||||
|
||||
Reference in New Issue
Block a user