Skip to content

Commit 94ca123

Browse files
NishkalankBezawadaAJIXuMuK
authored andcommitted
FolderPicker: fix to get folders of other site.
Fix folderpicker to get folders of other site instead of the current context by adding a new property siteAbsoluteUrl and forwarding it to FolderExplorer. Fix pnp#1305
1 parent d583c11 commit 94ca123

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/controls/folderPicker/FolderPicker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export class FolderPicker extends React.Component<IFolderPickerProps, IFolderPic
8787
defaultFolder={this.state.selectedFolder}
8888
onSelect={this._onFolderSelect}
8989
canCreateFolders={this.props.canCreateFolders}
90+
siteAbsoluteUrl={this.props.siteAbsoluteUrl}
9091
/>
9192
</div>
9293
</Panel>

src/controls/folderPicker/IFolderPickerProps.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export interface IFolderPickerProps {
77
*/
88
context: BaseComponentContext;
99

10+
/**
11+
* The absolute url of the target site. Only required if not the current site
12+
*/
13+
siteAbsoluteUrl?: string;
14+
1015
/**
1116
* The label for the control
1217
*/

0 commit comments

Comments
 (0)