diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2018-06-21 17:37:30 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-07-11 10:21:20 +0300 |
commit | 6b6e4b3b092d84dba54280c5223a284f661fb9cf (patch) | |
tree | cf3469371b013cea413a2a9b55f683d7f0f0eee8 /js | |
parent | 31d00919cdc82ff84d46252ef520c03646742092 (diff) |
Label button 'Start call' if none is in progress yet, fix #976
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'js')
-rw-r--r-- | js/views/callinfoview.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/js/views/callinfoview.js b/js/views/callinfoview.js index 5b07fac99..01d747e8b 100644 --- a/js/views/callinfoview.js +++ b/js/views/callinfoview.js @@ -31,15 +31,17 @@ var TEMPLATE = '<div class="room-name"></div>' + '<div class="call-controls-container">' + - '{{#if participantInCall}}' + ' <div class="call-button">' + + ' {{#if participantInCall}}' + ' <button class="leave-call primary">' + t('spreed', 'Leave call') + '</button>' + + ' {{else}}' + + ' {{#if hasCall}}' + + ' <button class="join-call call-ongoing primary">' + t('spreed', 'Join call') + '</button>' + + ' {{else}}' + + ' <button class="join-call primary">' + t('spreed', 'Start call') + '</button>' + + ' {{/if}}' + + ' {{/if}}' + ' </div>' + - '{{else}}' + - ' <div class="call-button">' + - ' <button class="join-call primary">' + t('spreed', 'Join call') + '</button>' + - ' </div>' + - '{{/if}}' + '{{#if canModerate}}' + ' <div class="share-link-options">' + ' <input name="link-checkbox" id="link-checkbox" class="checkbox link-checkbox" value="1" {{#if isPublic}} checked="checked"{{/if}} type="checkbox">' + |