Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add sidebar tab
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and nickvergessen committed Mar 27, 2019
commit a85b5338834c709ea826a2852b2382ced9425e95
14 changes: 13 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
_participants: null,
/** @property {OCA.SpreedMe.Views.ParticipantView} _participantsView */
_participantsView: null,
/** @property {OCA.SpreedMe.Views.CollectionsView} _collectionsView */
_collectionsView: null,
fullscreenDisabled: true,
_searchTerm: '',
guestNick: null,
Expand Down Expand Up @@ -288,7 +290,17 @@
});

this._sidebarView.addTab('participants', { label: t('spreed', 'Participants'), icon: 'icon-contacts-dark' }, this._participantsView);
this._sidebarView.addTab('collections', { label: t('spreed', 'Collections'), icon: 'icon-' }, this._participantsView);

this._collectionsView = new OCA.SpreedMe.Views.CollectionsView({
room: this.activeRoom,
id: 'collectionsTabView'
});
this._collectionsView.listenTo(this._rooms, 'change:active', function(model, active) {
if (active) {
this.setRoom(model);
}
});
this._sidebarView.addTab('collections', { label: t('spreed', 'Collections'), icon: 'icon-category-integration' }, this._collectionsView);
},
_hideParticipantList: function() {
this._sidebarView.removeTab('participants');
Expand Down
2 changes: 2 additions & 0 deletions js/merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"vendor/Caret.js/dist/jquery.caret.min.js",
"vendor/At.js/dist/js/jquery.atwho.min.js",
"simplewebrtc/bundled.js",
"collectionsintegration.js",
"models/chatmessage.js",
"models/chatmessagecollection.js",
"models/room.js",
Expand All @@ -16,6 +17,7 @@
"views/callbutton.js",
"views/callinfoview.js",
"views/chatview.js",
"views/collectionsview.js",
"views/editabletextlabel.js",
"views/emptycontentview.js",
"views/localvideoview.js",
Expand Down