3 var Marionette = require('backbone.marionette');
4 var modalRegion = require('../../components/modal-region');
5 var ChatContainerView = require('../chat/chatContainerView');
8 var issuableDecorator = require('../chat/decorators/issuableDecorator');
9 var commitDecorator = require('../chat/decorators/commitDecorator');
10 var mentionDecorator = require('../chat/decorators/mentionDecorator');
11 var emojiDecorator = require('../chat/decorators/emojiDecorator');
12 const linkDecorator = require('../chat/decorators/linkDecorator');
13 require('../behaviors/isomorphic');
15 var ChatLayout = Marionette.LayoutView.extend({
18 dialogRegion: modalRegion,
20 scroll: '#content-frame'
25 el: '#content-wrapper',
26 init: 'initChatRegion'
31 initChatRegion: function(optionsForRegion) {
32 var monitorUnreadItems = Marionette.getOption(this, 'monitorUnreadItems');
42 return new ChatContainerView(
44 collection: this.options.chatCollection,
46 monitorScrollPane: monitorUnreadItems && this.ui.scroll // Monitor the scroll region for unread items
52 module.exports = ChatLayout;