From f8f791cf65d67dd442f6536adfb6e6adf2a70209 Mon Sep 17 00:00:00 2001 From: Joris Tirado Date: Tue, 27 Jun 2017 14:29:22 -0700 Subject: [PATCH] UI-2761: Add new category for qubicle feature codes (#26) --- i18n/en-US.json | 5 +++++ submodules/featureCodes/featureCodes.js | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/i18n/en-US.json b/i18n/en-US.json index 571e6c5..29a51f4 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -1117,6 +1117,10 @@ "noFeatureCodeMessage": "There are no feature codes enabled on your account yet. Feature codes are automatically created when you load the Main Number page.", "mainNumberLink": "Go to Main Number", "labels": { + "qubicle login": "Agent Login", + "qubicle set ready": "Set Agent Ready", + "qubicle set away": "Set Agent Away", + "qubicle logout": "Agent Logout", "call_forward[action=activate]": "Enable Call-Forward", "call_forward[action=deactivate]": "Disable Call-Forward", "call_forward[action=toggle]": "Toggle Call-Forward", @@ -1153,6 +1157,7 @@ }, "__comment": "UI-1028, v3.20_s0: Added categories for the feature codes.", "categories": { + "qubicle": "Call Center", "call_forward": "Call-Forward", "hotdesk": "Hot-Desking", "parking": "Parking", diff --git a/submodules/featureCodes/featureCodes.js b/submodules/featureCodes/featureCodes.js index b163ed9..2b6525b 100644 --- a/submodules/featureCodes/featureCodes.js +++ b/submodules/featureCodes/featureCodes.js @@ -13,6 +13,12 @@ define(function(require){ }, categories: { + qubicle: [ + 'qubicle login', + 'qubicle set ready', + 'qubicle set away', + 'qubicle logout' + ], call_forward: [ "call_forward[action=activate]", "call_forward[action=deactivate]", @@ -128,7 +134,7 @@ define(function(require){ return _.chain(featureCodes) .map(function(category) { - category.codes = _.sortBy(category.codes, 'numbers'); + category.codes = _.sortBy(category.codes, 'number'); return category; }) .sortBy('category')