Merge pull request #918 from kkrisstoff/make-the-star-configurable

disable_star_indicator added
This commit is contained in:
Дамян Минков 2016-09-22 10:19:16 -05:00 committed by GitHub
commit fbd2879aa3
2 changed files with 5 additions and 3 deletions

View File

@ -40,5 +40,6 @@ var interfaceConfig = {
REMOTE_THUMBNAIL_RATIO_WIDTH: 1,
REMOTE_THUMBNAIL_RATIO_HEIGHT: 1,
// Enables feedback star animation.
ENABLE_FEEDBACK_ANIMATION: false
ENABLE_FEEDBACK_ANIMATION: false,
DISABLE_FOCUS_INDICATOR: false
};

View File

@ -1,5 +1,4 @@
/* global $, APP, JitsiMeetJS */
/* jshint -W101 */
/* global $, APP, JitsiMeetJS, interfaceConfig */
import Avatar from "../avatar/Avatar";
import UIUtil from "../util/UIUtil";
import UIEvents from "../../../service/UI/UIEvents";
@ -291,6 +290,8 @@ SmallVideo.prototype.getVideoMutedIndicator = function () {
* Creates the element indicating the moderator(owner) of the conference.
*/
SmallVideo.prototype.createModeratorIndicatorElement = function () {
// don't create moderator indicator if DISABLE_FOCUS_INDICATOR is true
if (interfaceConfig.DISABLE_FOCUS_INDICATOR) return false;
// Show moderator indicator
var indicatorSpan = $('#' + this.videoSpanId + ' .focusindicator');