Browse Source

UI-2499: handle 404 on virtual receptionist

4.3
Jean-Roch Maitre 9 years ago
parent
commit
2d420ec11b
2 changed files with 16 additions and 2 deletions
  1. +5
    -1
      i18n/en-US.json
  2. +11
    -1
      submodules/strategy/strategy.js

+ 5
- 1
i18n/en-US.json View File

@ -918,7 +918,11 @@
"info": "Customize your conference greeting message using our Text-to-Speech feature. Simply type your greeting message in the input field below.",
"mainConfMissing": "Your Main Conference could not be found.",
"tooltip": "Your Main Conference has a custom greeting message."
}
},
"__comment": "UI-2499: Handle case where greeting has been deleted",
"__version": "4.0",
"greetingMissing": "The greeting that was configured on this Virtual Receptionist is missing. Please setup a new greeting."
},
"callLogs": {


+ 11
- 1
submodules/strategy/strategy.js View File

@ -2109,11 +2109,21 @@ define(function(require){
resource: 'media.get',
data: {
accountId: self.accountId,
mediaId: menu.media.greeting
mediaId: menu.media.greeting,
generateError: false
},
success: function(data, status) {
greeting = data.data;
showPopup();
},
error: function(data, status, globalHandler) {
if(data && data.error === '404') {
showPopup();
toastr.warning(self.i18n.active().strategy.greetingMissing);
}
else {
globalHandler(data, { generateError: true });
}
}
});
} else {


Loading…
Cancel
Save