diff --git a/src/api/subscriber.js b/src/api/subscriber.js index 7fa34a74..51ee9faa 100644 --- a/src/api/subscriber.js +++ b/src/api/subscriber.js @@ -41,17 +41,9 @@ export async function setPreference (id, field, value) { await removePreference(id, field) } else { try { - await replacePreference(id, field, value) + await addPreference(id, field, value) } catch (err) { - const errCode = `${err.status}` - if (errCode === '422') { - // eslint-disable-next-line no-useless-catch - try { - await addPreference(id, field, value) - } catch (innerErr) { - throw innerErr - } - } else { + if (err) { throw err } } diff --git a/src/i18n/de.json b/src/i18n/de.json index a26bb506..44bd8aa0 100644 --- a/src/i18n/de.json +++ b/src/i18n/de.json @@ -142,6 +142,7 @@ "Custom time set": "Benutzerdefinierte Zeiteinstellung", "Customer Phonebook": "Telefonbuch des Kunden", "Customer Preferences": "Kundenpräferenzen", + "DND": "Bitte nicht stören", "Daily": "Täglich", "Dashboard": "Übersicht", "Data is in the clipboard": "Daten wurden in die Zwischenablage kopiert", @@ -252,6 +253,7 @@ "Hunt Policy": "Rufverteilungsregel", "Hunt Timeout": "Rufdauer", "Id": "ID", + "If activated the subscriber will not receive any call. The call forwards will not be taken into account.": "Wenn diese Funktion aktiviert ist, erhält der Teilnehmer keine Anrufe. Die Weiterleitung von Anrufen wird nicht berücksichtigt.", "If busy": "Wenn besetzt", "If not available": "Wenn besetzt", "Ignore Members Call Forwards when Hunting": "Anrufweiterleitungen von Gruppenmitgliedern beim Suchen ignorieren", diff --git a/src/i18n/en.json b/src/i18n/en.json index cf762c52..576a1542 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -139,6 +139,7 @@ "Custom time set": "Custom time set", "Customer Phonebook": "Customer Phonebook", "Customer Preferences": "Customer Preferences", + "DND": "DND", "Daily": "Daily", "Dashboard": "Dashboard", "Data is in the clipboard": "Data is in the clipboard", @@ -248,6 +249,7 @@ "Hunt Policy": "Hunt Policy", "Hunt Timeout": "Hunt Timeout", "Id": "Id", + "If activated the subscriber will not receive any call. The call forwards will not be taken into account.": "If activated the subscriber will not receive any call. The call forwards will not be taken into account.", "If busy": "If busy", "If not available": "If not available", "Ignore Members Call Forwards when Hunting": "Ignore Members Call Forwards when Hunting", diff --git a/src/i18n/es.json b/src/i18n/es.json index 2495f495..22d900ae 100644 --- a/src/i18n/es.json +++ b/src/i18n/es.json @@ -142,6 +142,7 @@ "Custom time set": "Intervalo de tiempo personalizado", "Customer Phonebook": "Customer Phonebook", "Customer Preferences": "Customer Preferences", + "DND": "No molestar", "Daily": "Diariamente", "Dashboard": "Tablero", "Data is in the clipboard": "Data is in the clipboard", @@ -252,6 +253,7 @@ "Hunt Policy": "Política de búsqueda", "Hunt Timeout": "Tiempo de espera de grupo de búsqueda", "Id": "Identificador", + "If activated the subscriber will not receive any call. The call forwards will not be taken into account.": "Si se activa, el abonado no recibirá ninguna llamada. No se tendrá en cuenta el desvío de llamadas.", "If busy": "Si está ocupado", "If not available": "Si no está disponible", "Ignore Members Call Forwards when Hunting": "Ignorar los Reenvíos de Llamada de los Miembros al Buscar", diff --git a/src/i18n/fr.json b/src/i18n/fr.json index 8f834756..2f9383a0 100644 --- a/src/i18n/fr.json +++ b/src/i18n/fr.json @@ -142,6 +142,7 @@ "Custom time set": "Intervalle de temps personnalisé", "Customer Phonebook": "Annuaire du client", "Customer Preferences": "Préférences du client", + "DND": "Ne pas déranger", "Daily": "Quotidien", "Dashboard": "Tableau de bord", "Data is in the clipboard": "Données dans le presse-papiers", @@ -252,6 +253,7 @@ "Hunt Policy": "Règlages des groupements d'appels", "Hunt Timeout": "Temporisation des groupements d’appels", "Id": "Id", + "If activated the subscriber will not receive any call. The call forwards will not be taken into account.": "Si cette option est activée, l'abonné ne recevra aucun appel. Les renvois d'appels ne seront pas pris en compte.", "If busy": "Si occupé", "If not available": "Si non disponible", "Ignore Members Call Forwards when Hunting": "Ignorer les renvois d'appel des membres lors de la chasse", diff --git a/src/i18n/it.json b/src/i18n/it.json index da9e08cb..79596700 100644 --- a/src/i18n/it.json +++ b/src/i18n/it.json @@ -140,6 +140,7 @@ "Custom time set": "Intervallo di tempo personalizzato", "Customer Phonebook": "Rubrica cliente", "Customer Preferences": "Preferenze cliente", + "DND": "Non disturbare", "Daily": "Giornaliero", "Dashboard": "Dashboard", "Data is in the clipboard": "I dati sono negli appunti", @@ -249,6 +250,7 @@ "Hunt Timeout": "Timeout ricerca", "Hunt timeout": "Timeout ricerca", "Id": "Id", + "If activated the subscriber will not receive any call. The call forwards will not be taken into account.": "Se attivato, l'abbonato non riceverà alcuna chiamata. Le chiamate inoltrate non saranno prese in considerazione.", "If busy": "Se occupato", "If not available": "Se non disponibile", "Ignore Members Call Forwards when Hunting": "Ignora gli Inoltri di Chiamata dei Membri durante la Ricerca", diff --git a/src/pages/CscPageCallSettings.vue b/src/pages/CscPageCallSettings.vue index 17fda2b6..7426a180 100644 --- a/src/pages/CscPageCallSettings.vue +++ b/src/pages/CscPageCallSettings.vue @@ -11,7 +11,7 @@ > +