+ {
+ busy
+ ?
+ :
+ { strings.DoneCopyingViews }
+
+ }
+
+ {
+ copyTasks.map((copyTask) => {
+ return
+
+ {copyTask.index}.
+ {copyTask.sourceView.title}
+
+ {copyTask.targetList.title}
+
+
+
+ {
+ copyTask.state === CopyTaskState.Busy &&
+ }
+ {
+ copyTask.state === CopyTaskState.Done &&
+ }
+ {
+ copyTask.state === CopyTaskState.Error &&
+ }
+
+
+ {copyTask.state === CopyTaskState.Error &&
+
+ this._toggleErrorDetails(copyTask)}>{strings.SeeMore}
+ this._retry(copyTask)}>{strings.Retry}
+
+ }
+ overflowButtonAriaLabel={strings.SeeMore}>
+ {strings.ErrorOccurred}
+ { showErrors.some(i => copyTask.index === i) && <>
{copyTask.error}> }
+
+ }
+
+ })
+ }
+
+ ;
+ }
+
+ private _toggleErrorDetails = (copyTask: ICopyTask): void => {
+ const { showErrors } = this.state;
+
+ if (showErrors.some(i => i === copyTask.index)) {
+ const newShowErrors = showErrors.filter(i => i !== copyTask.index);
+ this.setState({ showErrors: newShowErrors});
+ }
+ else {
+ const newShowErrors = [...showErrors, copyTask.index];
+ this.setState({ showErrors: newShowErrors});
+ }
+ }
+
+ private _retry = async (copyTask: ICopyTask): Promise