assignTo is single not multi

This commit is contained in:
petkir 2020-06-20 22:40:10 +02:00
parent 29641985f4
commit 222e9c8f99
4 changed files with 10 additions and 15 deletions

View File

@ -4,7 +4,7 @@ export interface IKanbanTask {
taskId: string;
title: string;
isCompleted?: boolean;
assignedTo?: IPersonaProps[];
assignedTo?: IPersonaProps;
htmlDescription?:string;
priority?:string;
bucket: string;

View File

@ -224,7 +224,7 @@ export default class KanbanComponent extends React.Component<IKanbanComponentPro
{tasksettings && tasksettings.showAssignedTo && (<KanbanTaskManagedProp
name="assignedTo"
displayName={strings.AssignedTo}
type={KanbanTaskMamagedPropertyType.persons }
type={KanbanTaskMamagedPropertyType.person }
value={task.assignedTo}
key={'assignedToProp'} />
)}

View File

@ -59,17 +59,12 @@ export default class KanbanTask extends React.Component<IKanbanTaskProps, IKanba
{showPriority && this.props.priority && (<div className={styles.priority}>{this.props.priority}</div>)}
{showAssignedTo && this.props.assignedTo && (<div className={styles.assignedto}>
{
this.props.assignedTo.map((p, i) => (
<div key={'personawrapper' + i}>
<Persona
key={'persona' + i}
{...p}
size={PersonaSize.size32}
hidePersonaDetails={false}
/>
</div>))
}
<Persona
key={'assingedto'}
{...this.props.assignedTo}
size={PersonaSize.size32}
hidePersonaDetails={false}
/>
</div>)}

View File

@ -6,6 +6,7 @@ Thinking about Kanban component with Fluent Ui Components
allowMove from one Bucket to the Other tested
move task to other Bucket works
internalDislplayRenderer: Person / Persons
BucketEdit Component (can be used in CustomPropertyPane)
playing with drag visibility
@ -60,9 +61,8 @@ Unexpected call to method or property access.
# Next Steps Component:
* think about Promise Task Actions, because actions are async
* EditSchema To support Edit and New PNP Controls :)
* BucketEdit Component (can be used in CustomPropertyPane)
# Webpart Steps