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; taskId: string;
title: string; title: string;
isCompleted?: boolean; isCompleted?: boolean;
assignedTo?: IPersonaProps[]; assignedTo?: IPersonaProps;
htmlDescription?:string; htmlDescription?:string;
priority?:string; priority?:string;
bucket: string; bucket: string;

View File

@ -224,7 +224,7 @@ export default class KanbanComponent extends React.Component<IKanbanComponentPro
{tasksettings && tasksettings.showAssignedTo && (<KanbanTaskManagedProp {tasksettings && tasksettings.showAssignedTo && (<KanbanTaskManagedProp
name="assignedTo" name="assignedTo"
displayName={strings.AssignedTo} displayName={strings.AssignedTo}
type={KanbanTaskMamagedPropertyType.persons } type={KanbanTaskMamagedPropertyType.person }
value={task.assignedTo} value={task.assignedTo}
key={'assignedToProp'} /> 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>)} {showPriority && this.props.priority && (<div className={styles.priority}>{this.props.priority}</div>)}
{showAssignedTo && this.props.assignedTo && (<div className={styles.assignedto}> {showAssignedTo && this.props.assignedTo && (<div className={styles.assignedto}>
{ <Persona
this.props.assignedTo.map((p, i) => ( key={'assingedto'}
<div key={'personawrapper' + i}> {...this.props.assignedTo}
<Persona size={PersonaSize.size32}
key={'persona' + i} hidePersonaDetails={false}
{...p} />
size={PersonaSize.size32}
hidePersonaDetails={false}
/>
</div>))
}
</div>)} </div>)}

View File

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