fix: у редактируемых исполнителей не было кнопки удаления
Матрица рисует корзину только при заданном canRemoveRow — для исполнителей его не передали. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -467,6 +467,7 @@ const RecruitingHireForm: React.FC<IRequestFormProps> = ({
|
||||
search={(q) => approval.searchUsers(q)}
|
||||
title="Исполнение (после согласования)"
|
||||
roleLabel="Исполнитель"
|
||||
canRemoveRow={executors.editable ? () => true : undefined}
|
||||
pickerPlaceholder="Добавить исполнителя: начните вводить ФИО…"
|
||||
emptyText="Исполнители не заданы по маршруту."
|
||||
/>
|
||||
|
||||
@@ -457,6 +457,7 @@ const RecruitingSelectionForm: React.FC<IRequestFormProps> = ({
|
||||
search={(q) => approval.searchUsers(q)}
|
||||
title="Исполнение (после согласования)"
|
||||
roleLabel="Исполнитель"
|
||||
canRemoveRow={executors.editable ? () => true : undefined}
|
||||
pickerPlaceholder="Добавить исполнителя: начните вводить ФИО…"
|
||||
emptyText="Исполнители не заданы по маршруту."
|
||||
/>
|
||||
|
||||
@@ -476,6 +476,7 @@ const ReferralForm: React.FC<IRequestFormProps> = ({
|
||||
search={(q) => approval.searchUsers(q)}
|
||||
title={noApprovalPhase ? 'Исполнение' : 'Исполнение (после согласования)'}
|
||||
roleLabel="Исполнитель"
|
||||
canRemoveRow={executors.editable ? () => true : undefined}
|
||||
pickerPlaceholder="Добавить исполнителя: начните вводить ФИО…"
|
||||
emptyText="Исполнители не заданы по маршруту."
|
||||
/>
|
||||
|
||||
@@ -284,6 +284,7 @@ const SkudExplanationForm: React.FC<IRequestFormProps> = ({
|
||||
search={(q) => approval.searchUsers(q)}
|
||||
title="Исполнение (после согласования)"
|
||||
roleLabel="Исполнитель"
|
||||
canRemoveRow={executors.editable ? () => true : undefined}
|
||||
pickerPlaceholder="Добавить исполнителя: начните вводить ФИО…"
|
||||
emptyText="Исполнители не заданы по маршруту."
|
||||
/>
|
||||
|
||||
@@ -514,6 +514,7 @@ const TmcTransferForm: React.FC<IRequestFormProps> = ({
|
||||
search={(q) => approval.searchUsers(q)}
|
||||
title="Исполнение (после согласования)"
|
||||
roleLabel="Исполнитель"
|
||||
canRemoveRow={executors.editable ? () => true : undefined}
|
||||
pickerPlaceholder="Добавить исполнителя: начните вводить ФИО…"
|
||||
emptyText="Исполнители не заданы по маршруту."
|
||||
/>
|
||||
|
||||
@@ -405,6 +405,7 @@ const WorkplaceSetupForm: React.FC<IRequestFormProps> = ({
|
||||
search={(q) => approval.searchUsers(q)}
|
||||
title="Исполнение (после согласования)"
|
||||
roleLabel="Исполнитель"
|
||||
canRemoveRow={executors.editable ? () => true : undefined}
|
||||
pickerPlaceholder="Добавить исполнителя: начните вводить ФИО…"
|
||||
emptyText="Исполнители не заданы по маршруту."
|
||||
/>
|
||||
|
||||
@@ -23,6 +23,7 @@ export const ExecutorsMatrix: React.FC<IExecutorsMatrixProps> = ({ editor, searc
|
||||
search={search}
|
||||
title={title}
|
||||
roleLabel="Исполнитель"
|
||||
canRemoveRow={editor.editable ? () => true : undefined}
|
||||
pickerPlaceholder="Добавить исполнителя: начните вводить ФИО…"
|
||||
emptyText="Исполнители не назначены."
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user