Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PowerBiService.GetReport(this.context.serviceScope, this.workspaceId, this.reportId).then((report: PowerBiReport) => {
this.context.statusRenderer.clearLoadingIndicator(this.domElement);
this.domElement.style.height = this.properties.reportHeight + "px";
var config: any = {
type: 'report',
id: report.id,
embedUrl: report.embedUrl,
accessToken: report.accessToken,
tokenType: models.TokenType.Aad,
permissions: models.Permissions.All,
viewMode: models.ViewMode.View,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: this.properties.showPageTabs,
}
};
window.powerbi.reset(this.domElement);
window.powerbi.embed(this.domElement, config);
});
}