Skip to content

Commit ee9bdfd

Browse files
authored
Merge pull request #1585 from RoundingWell/five9-updates
More five9 updates for transferred call handling
2 parents c86e630 + e7112b4 commit ee9bdfd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/care-ops-five9/five9_app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export default App.extend({
8282
this.setState('isCalling', false);
8383
this.setState('actionId', null);
8484
Radio.request('dialer', 'five9Call', { callData, callLogData });
85+
Radio.request('dialer', 'showPatientLinks', null);
8586
},
8687
});
8788
},

packages/care-ops-five9/five9_views.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,19 @@ const LayoutView = View.extend({
135135
this.$el.toggleClass('is-open', this.model.get('isOpen'));
136136
},
137137
showCallState() {
138-
const isTransferredCall = this.model.get('isTransferredCall');
139138
const callTime = this.model.get('callTime');
139+
const hasCallTime = !!callTime;
140+
const isTransferredCall = !!this.model.get('isTransferredCall');
140141
const isCalling = !!this.model.get('isCalling');
141142

142-
this.ui.header.toggleClass('is-call-active', isTransferredCall || callTime);
143+
this.ui.header.toggleClass('is-call-active', isTransferredCall || hasCallTime);
143144

144145
if (isTransferredCall) {
145146
this.showChildView('heading', new View({ template: hbs`Transferred Call` }));
146147
return;
147148
}
148149

149-
if (callTime) {
150+
if (hasCallTime) {
150151
this.showChildView('heading', new TimerView({ startTime: callTime }));
151152
return;
152153
}

0 commit comments

Comments
 (0)