show poll related buttons only on the default pres pod

This commit is contained in:
Anton Georgiev 2017-11-03 11:32:57 -04:00
parent a3d91b9ddb
commit e5b335b7b5

View File

@ -938,6 +938,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
private function pollStartedHandler(e:PollStartedEvent):void {
if (this.podId != PresentationPodManager.DEFAULT_POD_ID) {
return;
}
// the event for this doesn't exist yet
if (amITheCurrentPodPresenter()) {
// display the results view
@ -993,7 +996,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
pollVoteBox.visible = pollVoteBox.includeInLayout = true;
} else if (state == "presenter" && amITheCurrentPodPresenter()) {
if (this.podId == PresentationPodManager.DEFAULT_POD_ID) { // only allow polling from the default pod
pollStartBtn.visible = true;
}
fileAndPollControls.visible = fileAndPollControls.includeInLayout= true;
navigationControls.visible = navigationControls.includeInLayout= true;