Bug 1020449 Loop should show caller information on incoming calls. Patch originally by Andrei, updated and polished by Standard8. r=nperriault

This commit is contained in:
Andrei Oprea
2014-10-10 10:19:45 +01:00
parent 7bf1f19f36
commit fea8df91a6
17 changed files with 403 additions and 59 deletions

View File

@@ -15,6 +15,7 @@ loop.conversation = (function(mozL10n) {
var sharedMixins = loop.shared.mixins;
var sharedModels = loop.shared.models;
var OutgoingConversationView = loop.conversationViews.OutgoingConversationView;
var CallIdentifierView = loop.conversationViews.CallIdentifierView;
var IncomingCallView = React.createClass({displayName: 'IncomingCallView',
mixins: [sharedMixins.DropdownMenuMixin],
@@ -94,9 +95,14 @@ loop.conversation = (function(mozL10n) {
"conversation-window-dropdown": true,
"visually-hidden": !this.state.showMenu
});
return (
React.DOM.div({className: "call-window"},
React.DOM.h2(null, mozL10n.get("incoming_call_title2")),
CallIdentifierView({video: this.props.video,
peerIdentifier: this.props.model.getCallIdentifier(),
urlCreationDate: this.props.model.get("urlCreationDate"),
showIcons: true}),
React.DOM.div({className: "btn-group call-action-group"},
React.DOM.div({className: "fx-embedded-call-button-spacer"}),