diff --git a/src/constants.js b/src/constants.js index 9adfa68..e81e5dc 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,4 +1,4 @@ -const { REACT_APP_API_BASE_URL } = process.env; +const { REACT_APP_API_BASE_URL, REACT_APP_ENABLE_ACCOUNT_LIMITS_ALL } = process.env; export const APP_API_BASE_URL = (window.JAMBONZ) ? window.JAMBONZ.APP_API_BASE_URL : REACT_APP_API_BASE_URL; export const LIMITS = [ // { @@ -10,7 +10,22 @@ export const LIMITS = [ // category: "api_rate", // }, { - label: "Max concurrent calls (0=unlimited)", + label: "Max calls", category: "voice_call_session", - }, - ]; \ No newline at end of file + } + ]; + + if (REACT_APP_ENABLE_ACCOUNT_LIMITS_ALL) { + LIMITS.push({ + label: "Licensed calls", + category: "voice_call_session_license", + }); + LIMITS.push({ + label: "Max minutes", + category: "voice_call_minutes", + }); + LIMITS.push({ + label: "Licensed minutes", + category: "voice_call_minutes_license", + }); + } \ No newline at end of file