summaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/channel.html2
-rw-r--r--web/templates/head.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/web/templates/channel.html b/web/templates/channel.html
index c15cea178..33bb252b1 100644
--- a/web/templates/channel.html
+++ b/web/templates/channel.html
@@ -33,7 +33,7 @@
<div id="removed_from_channel_modal"></div>
<div id="register_app_modal"></div>
<script>
- window.setup_channel_page({{ .Props }});
+window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }}, {{ .User }});
$('body').tooltip( {selector: '[data-toggle=tooltip]'} );
if($(window).height() > 1200){
$('.modal-body').css('max-height', 1000);
diff --git a/web/templates/head.html b/web/templates/head.html
index 30a83c4f2..ec06ba9bc 100644
--- a/web/templates/head.html
+++ b/web/templates/head.html
@@ -47,6 +47,7 @@
window.mm_config = {{ .ClientCfg }};
window.mm_team = {{ .Team }};
window.mm_user = {{ .User }};
+ window.mm_channel = {{ .Channel }};
if ({{.SessionTokenIndex}} >= 0) {
window.mm_session_token_index = {{.SessionTokenIndex}};