diff --git a/src/api/common.js b/src/api/common.js
index cda70e05..233bacfd 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -4,7 +4,6 @@ import saveAs from 'file-saver'
import _ from 'lodash'
import { getJsonBody } from 'src/api/utils'
import { getJwt, hasJwt } from 'src/auth'
-import { getCurrentLangAsV1Format } from 'src/i18n'
import { PATH_CHANGE_PASSWORD } from 'src/router/routes'
export const LIST_DEFAULT_PAGE = 1
export const LIST_DEFAULT_ROWS = 24
@@ -69,12 +68,6 @@ export function initAPI ({ baseURL }) {
if (config.method === 'POST' && (config.data === undefined || config.data === null)) {
config.data = {}
}
- if (!config.url?.includes('v2')) {
- config.params = {
- ...config.params,
- lang: getCurrentLangAsV1Format()
- }
- }
return config
}
diff --git a/src/api/pbx-soundsets.js b/src/api/pbx-soundsets.js
index a5f5e646..ae70f881 100644
--- a/src/api/pbx-soundsets.js
+++ b/src/api/pbx-soundsets.js
@@ -16,7 +16,6 @@ import {
getJwt,
hasJwt
} from 'src/auth'
-import { getCurrentLangAsV1Format } from 'src/i18n'
export function getSoundSets (options) {
return new Promise((resolve, reject) => {
@@ -204,10 +203,7 @@ export function uploadSoundFile (options) {
if (updatedConfig.method === 'POST' && (updatedConfig.data === undefined || updatedConfig.data === null)) {
updatedConfig.data = {}
}
- updatedConfig.params = {
- ...updatedConfig.params,
- lang: getCurrentLangAsV1Format()
- }
+
return updatedConfig
})
httpApi.post('api/soundfiles/', formData, {
diff --git a/src/components/CscMainMenuTop.vue b/src/components/CscMainMenuTop.vue
index 6c20b50f..0c9f64f4 100644
--- a/src/components/CscMainMenuTop.vue
+++ b/src/components/CscMainMenuTop.vue
@@ -45,12 +45,10 @@ export default {
},
computed: {
...mapGetters('user', [
- 'getCustomerId',
'hasFaxCapability',
'hasSubscriberProfileAttribute',
'hasSubscriberProfileAttributes',
'isLicenseActive',
- 'isOldCSCProxyingAllowed',
'isPbxEnabled',
'isSpCe'
]),
@@ -260,12 +258,6 @@ export default {
icon: 'devices',
label: this.$t('Registered Devices'),
visible: this.hasSubscriberProfileAttribute(PROFILE_ATTRIBUTE_MAP.registeredDevices)
- },
- {
- to: `/customer/${this.getCustomerId}/details`,
- icon: 'far fa-address-card',
- label: this.$t('Customer Details'),
- visible: this.isOldCSCProxyingAllowed
}
]
}
diff --git a/src/i18n/de.json b/src/i18n/de.json
index a5173526..2d065d1f 100644
--- a/src/i18n/de.json
+++ b/src/i18n/de.json
@@ -139,7 +139,6 @@
"Custom Announcements": "Individuelle Ansagen",
"Custom sound": "Benutzerdefinierter Sound",
"Custom time set": "Benutzerdefinierte Zeiteinstellung",
- "Customer Details": "Kunden-Details",
"Customer Phonebook": "Telefonbuch des Kunden",
"Customer Preferences": "Kundenpräferenzen",
"Daily": "Täglich",
diff --git a/src/i18n/en.json b/src/i18n/en.json
index 15520b72..4aa5f044 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -136,7 +136,6 @@
"Custom Announcements": "Custom Announcements",
"Custom sound": "Custom sound",
"Custom time set": "Custom time set",
- "Customer Details": "Customer Details",
"Customer Phonebook": "Customer Phonebook",
"Customer Preferences": "Customer Preferences",
"Daily": "Daily",
diff --git a/src/i18n/es.json b/src/i18n/es.json
index 5f102e29..1ef48d43 100644
--- a/src/i18n/es.json
+++ b/src/i18n/es.json
@@ -139,7 +139,6 @@
"Custom Announcements": "Anuncios Personalizados",
"Custom sound": "Sonido personalizado",
"Custom time set": "Intervalo de tiempo personalizado",
- "Customer Details": "Detalles de cliente",
"Customer Phonebook": "Customer Phonebook",
"Customer Preferences": "Customer Preferences",
"Daily": "Diariamente",
diff --git a/src/i18n/fr.json b/src/i18n/fr.json
index ddd11d6b..ed1eb9d6 100644
--- a/src/i18n/fr.json
+++ b/src/i18n/fr.json
@@ -139,7 +139,6 @@
"Custom Announcements": "Annonces personnalisées",
"Custom sound": "Son personnalisé",
"Custom time set": "Intervalle de temps personnalisé",
- "Customer Details": "Détails du client",
"Customer Phonebook": "Annuaire du client",
"Customer Preferences": "Préférences du client",
"Daily": "Quotidien",
diff --git a/src/i18n/index.js b/src/i18n/index.js
index 2547401e..7aebcf1c 100644
--- a/src/i18n/index.js
+++ b/src/i18n/index.js
@@ -67,28 +67,6 @@ export async function setLanguage (locale) {
// Note: please extend "reloadLanguageRelatedData" action in the store if you are using language related API endpoints
}
-/**
- * It converts language code from V2 (new CSC) to V1 UI (old Panel CSC) format
- * @param {string} lang
- * @returns {string}
- */
-export function convertLangV2toV1 (lang) {
- return lang === 'en-US' ? 'en' : lang
-}
-
-/**
- * It converts language code from V1 (old Panel CSC) to V2 UI (new CSC) format
- * @param {string} lang
- * @returns {string}
- */
-export function convertLangV1toV2 (lang) {
- return ['en', 'i-default'].includes(lang) ? 'en-US' : lang
-}
-
-export function getCurrentLangAsV1Format () {
- return convertLangV2toV1(i18n.locale)
-}
-
export function normalizeLocaleCode (locale) {
const shortLangCode = String(locale || 'en-US').substring(0, 2).toLowerCase()
const langCodeInV2Format = (shortLangCode === 'en') ? 'en-US' : shortLangCode
diff --git a/src/i18n/it.json b/src/i18n/it.json
index e00c49b6..ffbdaf37 100644
--- a/src/i18n/it.json
+++ b/src/i18n/it.json
@@ -137,7 +137,6 @@
"Custom Announcements": "Annunci personalizzati",
"Custom sound": "Audio personalizzato",
"Custom time set": "Intervallo di tempo personalizzato",
- "Customer Details": "Dettagli cliente",
"Customer Phonebook": "Rubrica cliente",
"Customer Preferences": "Preferenze cliente",
"Daily": "Giornaliero",
diff --git a/src/pages/Proxy.vue b/src/pages/Proxy.vue
deleted file mode 100644
index ab12304e..00000000
--- a/src/pages/Proxy.vue
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/router/routes.js b/src/router/routes.js
index a121ae45..65420210 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -515,14 +515,6 @@ const routes = [
profileAttribute: PROFILE_ATTRIBUTE_MAP.registeredDevices
}
},
- {
- path: '/customer/:pathMatch(.*)',
- component: () => import('pages/Proxy'),
- meta: {
- title: i18n.global.t('Customer Details'),
- subtitle: i18n.global.t('Customer Details')
- }
- },
{
path: '*',
component: CscPageError404,
diff --git a/src/store/user.js b/src/store/user.js
index 7fa87158..2fa6deea 100644
--- a/src/store/user.js
+++ b/src/store/user.js
@@ -204,9 +204,6 @@ export default {
: true
}
},
- isOldCSCProxyingAllowed (state, getters) {
- return getters.isAdmin && state.platformInfo?.csc_v2_mode === 'mixed' && !!getters.getCustomerId
- },
isLicenseActive: (state) => {
return (license) => {
return state?.platformInfo.licenses.includes(license)