26 lines
726 B
React
26 lines
726 B
React
|
|
export function FeatureParentSelect({
|
||
|
|
featureActions = [],
|
||
|
|
defaultValue = '',
|
||
|
|
disabled = false,
|
||
|
|
label = 'Bezug zu Feature (Arbeitspaket)',
|
||
|
|
}) {
|
||
|
|
return (
|
||
|
|
<label>
|
||
|
|
{label}
|
||
|
|
<select name="parent_action_id" defaultValue={defaultValue} disabled={disabled}>
|
||
|
|
<option value="">— kein Bezug —</option>
|
||
|
|
{featureActions.map((action) => (
|
||
|
|
<option key={action.id} value={action.id}>
|
||
|
|
{action.title}
|
||
|
|
</option>
|
||
|
|
))}
|
||
|
|
</select>
|
||
|
|
{featureActions.length === 0 && (
|
||
|
|
<span className="muted form-hint">
|
||
|
|
Lege zuerst ein Feature-Arbeitspaket an (Story/Lieferung), um Bugs/Issues zu verknüpfen.
|
||
|
|
</span>
|
||
|
|
)}
|
||
|
|
</label>
|
||
|
|
)
|
||
|
|
}
|