Skip to content

Commit

Permalink
UI-3152: show hangup cause label properly (#93)
Browse files Browse the repository at this point in the history
* Get hangup cause label from active lang
use capitalize instead of lowercase on css

* CR: remove unused statement and text display improvements

* Styling hangup cause only

* CSS indentation

* prevent cell content overflow
  • Loading branch information
masmerino13 authored and joristirado committed Oct 26, 2018
1 parent 5bca366 commit a47dcf7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions submodules/callLogs/callLogs.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
width: 100%;
}
#call_logs_container .grid-row:not(.header-row) .grid-cell.hangup .cause-title {
text-transform: lowercase;
text-transform: capitalize;
font-size: 12px;
font-style: italic;
}
Expand All @@ -203,6 +203,13 @@
line-height: 40px;
}

#call_logs_container .hangup .sub-cell.single-cell {
display: flex;
justify-content: center;
align-items: center;
line-height: normal;
}

#call_logs_container .call-logs-loader {
margin-top: 10px;
padding: 10px;
Expand Down Expand Up @@ -246,4 +253,4 @@ body.colorblind #call_logs_container .grid-cell.direction .monster-green {
}
body.colorblind #call_logs_container .grid-cell.direction .monster-orange {
color: #222 !important;
}
}
5 changes: 4 additions & 1 deletion submodules/callLogs/callLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ define(function(require) {
toName: cdr.callee_id_name,
toNumber: cdr.callee_id_number || ('request' in cdr) ? cdr.request.replace(/@.*/, '') : cdr.to.replace(/@.*/, ''),
duration: durationMin + ':' + durationSec,
hangupCause: cdr.hangup_cause,
hangupCause: _.chain(self.i18n.active().hangupCauses[cdr.hangup_cause])
.get('label', cdr.hangup_cause)
.lowerCase()
.value(),
hangupHelp: hangupHelp,
isOutboundCall: isOutboundCall,
mailtoLink: 'mailto:' + monster.config.whitelabel.callReportEmail
Expand Down

0 comments on commit a47dcf7

Please sign in to comment.