Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ve-app/pane-left/left-pane.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,17 +434,20 @@ class LeftPaneController implements angular.IComponentController {
});
}
} else if (this.$state.includes('**.present.**')) {
const viewId = branch.type !== 'view' ? branch.viewId : branch.data.id;
let viewId = '';

// If clicked on a PE send the element.selected event for Tool Pane
if (!(branch.type === 'view' || branch.type === 'section')) {
viewId = branch.viewId;
const data = {
elementId: branch.data.id,
projectId: branch.data._projectId,
refId: branch.data._refId,
commitId: 'latest',
};
this.eventSvc.$broadcast<veCoreEvents.elementSelectedData>('element.selected', data);
} else {
viewId = branch.data.id;
}

void this.$state.go(
Expand Down