Created
March 5, 2020 18:52
-
-
Save mmsharepoint/acf10a8f7a7d26075a192dd0d3369df9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private saveMailTo = () => { | |
this.setState((prevState: IOneDriveState, props: IOneDriveProps) => { | |
return { | |
showSpinner: true | |
}; | |
}); | |
this.props.graphController.retrieveMimeMail(this.state.parentFolder.driveID, this.state.parentFolder.id, this.props.mail, this.saveMailCallback) | |
.then((response: string) => { | |
const saveLocationDisplayName = `OneDrive ...> ${this.state.grandParentFolder.name} > ${this.state.parentFolder.name}`; | |
this.props.graphController.saveMailMetadata(this.props.mail.id, saveLocationDisplayName, this.state.parentFolder.webUrl, new Date()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment