Skip to content

Commit 563448f

Browse files
committed
Merged PR 22593: adding tile to entity type url param
taking into account entity type of type 'tile' in url parameter. this will allow us to enter the tile embed page in the sample through the url
1 parent 1928f05 commit 563448f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

demo/v2-demo/report.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,15 @@
3030
var mode = modeUrlParam ? modeUrlParam : "view";
3131

3232
var entityTypeUrlParam = GetParameterByName("entityType");
33-
var entityType = entityTypeUrlParam == "dashboard" ? EntityType.Dashboard : EntityType.Report;
34-
33+
var entityType;
34+
if (entityTypeUrlParam == "dashboard") {
35+
entityType = EntityType.Dashboard;
36+
} else if (entityTypeUrlParam == "tile") {
37+
entityType = EntityType.Tile;
38+
} else {
39+
entityType = EntityType.Report;
40+
}
41+
3542
// set mode and type in session.
3643
SetSession(SessionKeys.EntityType, entityType);
3744
SetSession(SessionKeys.EmbedMode, mode);

dist/powerbi.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)