Skip to content

Commit

Permalink
FolderPicker: fix to get folders of other site.
Browse files Browse the repository at this point in the history
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 #1305
  • Loading branch information
NishkalankBezawada committed Oct 31, 2022
1 parent b1f6d35 commit 319ec18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controls/folderPicker/FolderPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export class FolderPicker extends React.Component<IFolderPickerProps, IFolderPic
defaultFolder={this.state.selectedFolder}
onSelect={this._onFolderSelect}
canCreateFolders={this.props.canCreateFolders}
siteAbsoluteUrl={this.props.siteAbsoluteUrl}
/>
</div>
</Panel>
Expand Down
5 changes: 5 additions & 0 deletions src/controls/folderPicker/IFolderPickerProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export interface IFolderPickerProps {
*/
context: BaseComponentContext;

/**
* The absolute url of the target site. Only required if not the current site
*/
siteAbsoluteUrl?: string;

/**
* The label for the control
*/
Expand Down

0 comments on commit 319ec18

Please sign in to comment.