@@ -273,10 +297,15 @@ export default class OneDriveFinder extends React.Component
+
+
+
+
+
{(this.state.breadcrumbItem.length > 0) &&
-
+
}
{(this.state.itemID != "" && this.state.searchDrive == "") &&
+ >
+
}
{(this.state.searchDrive != "") &&
+ >
+
}
{
@@ -321,12 +356,17 @@ export default class OneDriveFinder extends React.Component {
+ this.flref.current.reload(true);
+ }
+
/**
*
* @param e
* Capture file or folder and manages breadcrumb
*/
private manageFolder = (e: any) => {
+ console.log(e.detail);
if (e.detail.folder != undefined) {
this._breadcrumbItem.push({
text: e.detail.name,
@@ -355,7 +395,6 @@ export default class OneDriveFinder extends React.Component {
- let graphData: any = await this.getGraphContent("https://graph.microsoft.com/v1.0/me/drive/items/" + key + "?$select=id");
+ private getOneDriveRootFolderID = async (ItemId) => {
+ let graphData: any = await this.getGraphContent("https://graph.microsoft.com/v1.0/me/drive/items/" + ItemId + "?$select=id");
return graphData.id;
}