From c3963b1f35f19ddad848c168e40f099b1440a72c Mon Sep 17 00:00:00 2001 From: Hans-Peter Herzog Date: Tue, 7 Aug 2018 11:05:20 +0200 Subject: [PATCH] TT#37656 PBXConfig: As a Customer, I want to filter PBXDevices by station_name Change-Id: I9842a710fc07b3c349f3f1ab9609db8a5b5b2e52 --- src/api/pbx-config.js | 4 + .../pages/PbxConfiguration/CscPbxDevice.vue | 8 + .../PbxConfiguration/CscPbxDeviceAddForm.vue | 92 ++-- .../pages/PbxConfiguration/CscPbxDevices.vue | 393 ++++++++++++++---- .../PbxConfiguration/CscPbxDevicesFilter.vue | 66 --- .../PbxConfiguration/CscPbxDevicesToolbar.vue | 163 -------- .../pages/PbxConfiguration/CscPbxMacInput.vue | 93 ----- src/locales/en.json | 13 +- src/store/pbx-config/actions.js | 17 +- src/store/pbx-config/getters.js | 16 + src/store/pbx-config/mutations.js | 11 +- src/store/pbx-config/state.js | 4 +- src/themes/app.common.styl | 6 + 13 files changed, 432 insertions(+), 454 deletions(-) delete mode 100644 src/components/pages/PbxConfiguration/CscPbxDevicesFilter.vue delete mode 100644 src/components/pages/PbxConfiguration/CscPbxDevicesToolbar.vue delete mode 100644 src/components/pages/PbxConfiguration/CscPbxMacInput.vue diff --git a/src/api/pbx-config.js b/src/api/pbx-config.js index ca01bc89..84bc0f53 100644 --- a/src/api/pbx-config.js +++ b/src/api/pbx-config.js @@ -201,6 +201,7 @@ export function getDeviceList(options) { page: options.page, profile_id: options.profile_id, identifier: options.identifier, + station_name: options.station_name, order_by: PBX_CONFIG_ORDER_BY, order_by_direction: PBX_CONFIG_ORDER_DIRECTION }; @@ -210,6 +211,9 @@ export function getDeviceList(options) { if(params.identifier === null) { delete params['identifier']; } + if(params.station_name === null) { + delete params['station_name']; + } return getDevices({ params: params }).then((devices)=>{ diff --git a/src/components/pages/PbxConfiguration/CscPbxDevice.vue b/src/components/pages/PbxConfiguration/CscPbxDevice.vue index 46b136a2..3c413a43 100644 --- a/src/components/pages/PbxConfiguration/CscPbxDevice.vue +++ b/src/components/pages/PbxConfiguration/CscPbxDevice.vue @@ -7,6 +7,7 @@ @@ -350,4 +351,11 @@ .csc-pbx-device-buttons margin-top 32px + + .csc-device-title + text-overflow ellipsis + white-space: nowrap; + width 100% + overflow hidden + padding-right 80px diff --git a/src/components/pages/PbxConfiguration/CscPbxDeviceAddForm.vue b/src/components/pages/PbxConfiguration/CscPbxDeviceAddForm.vue index 0e624fcc..3ce1d05c 100644 --- a/src/components/pages/PbxConfiguration/CscPbxDeviceAddForm.vue +++ b/src/components/pages/PbxConfiguration/CscPbxDeviceAddForm.vue @@ -1,51 +1,49 @@