diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-25 13:09:07 +0200 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-25 13:09:07 +0200 |
commit | 14da4be11fe13d4fcd55143c39b73c0d086b901b (patch) | |
tree | 2f6d2b9385b69852c9ea1c9e537aeefd0705ed24 /app/views/switchboards/show.html.erb | |
parent | 17f94f46374d60e58a00071303c9081469e7997c (diff) |
Show transfer buttons only for switchable incoming calls.
Diffstat (limited to 'app/views/switchboards/show.html.erb')
-rw-r--r-- | app/views/switchboards/show.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb index f3304cf..69b0ed6 100644 --- a/app/views/switchboards/show.html.erb +++ b/app/views/switchboards/show.html.erb @@ -46,11 +46,11 @@ {{phoneNumber.number}} </span> - {{#if activeCalls.length}} + {{#if dispatchableIncomingCalls.length}} <p> - {{#each activeCall in activeCalls}} - <button {{action transfer_blind activeCall.id phoneNumber.number}} class="btn btn-small">Transfer</button> - <button {{action transfer_attended activeCall.id phoneNumber.number}} class="btn btn-small">Attended Transfer</button> + {{#each dispatchableIncomingCall in dispatchableIncomingCalls}} + <button {{action transfer_blind dispatchableIncomingCall.id phoneNumber.number}} class="btn btn-small">Transfer</button> + <button {{action transfer_attended dispatchableIncomingCall.id phoneNumber.number}} class="btn btn-small">Attended Transfer</button> {{/each}} </p> {{/if}} |