Skip to content

Commit

Permalink
Adding message from EnvVar
Browse files Browse the repository at this point in the history
  • Loading branch information
dpessoa committed Oct 1, 2020
1 parent e81434b commit a367d79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ module.exports = {
},
pagerDuty: {
serviceId: pe.SERVICE_ID || null,
modalMessage: pe.MODAL_MESSAGE || 'Would you like to Page IMC team?',
},
ssoCert: pe.SSO_CERT || null,
waitingSigKillTimeout,
Expand Down
5 changes: 2 additions & 3 deletions view/rooms/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,8 +898,7 @@ function pagingConfirmationModal(event) {
'style',
'display:block;'
);
pagingIMCConfirmationText.innerText =
'Would you like to Page IMC team?';
pagingIMCConfirmationText.innerText = pdModalMessage;
}

function closePagingModal() {
Expand Down Expand Up @@ -1147,7 +1146,7 @@ window.onload = () => {
declineButton.onclick = closeConfirmationModal;

// Page IMC Team;
_PDServiceId = pagerDuty;
_PDServiceId = pdServiceId;
if (!_PDServiceId) {
pagingButton.setAttribute(
'style',
Expand Down
3 changes: 2 additions & 1 deletion view/rooms/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ html
var useNewNamespaceFormat = #{useNewNamespaceFormatImc};
var roomTypeMapping = #{roomTypeMapping};
var defaultRoomType = '#{defaultRoomType}';
var pagerDuty = '#{pagerDuty ? pagerDuty.serviceId : null}';
var pdServiceId = '#{pagerDuty ? pagerDuty.serviceId : null}';
var pdModalMessage = '#{pagerDuty ? pagerDuty.modalMessage : null}';
script(src='/static/analytics/app.js')
script(src='/static/rooms/app.js')

0 comments on commit a367d79

Please sign in to comment.