From bb39aa1e4cfbdf4f42754a7909f5ed319571ca19 Mon Sep 17 00:00:00 2001 From: raxelsen Date: Tue, 17 Jul 2018 13:45:55 +0200 Subject: [PATCH] TT#39618 Alternative pbx seats/groups entity title Change-Id: Idf5bd30aa3e572b07db99fe7be5e97e18e44cfff --- .../pages/PbxConfiguration/CscPbxGroup.vue | 54 +++++++---- .../pages/PbxConfiguration/CscPbxGroups.vue | 76 ++++++++++++---- .../pages/PbxConfiguration/CscPbxSeat.vue | 90 +++++++++++++++---- .../pages/PbxConfiguration/CscPbxSeats.vue | 71 +++++++++++---- 4 files changed, 228 insertions(+), 63 deletions(-) diff --git a/src/components/pages/PbxConfiguration/CscPbxGroup.vue b/src/components/pages/PbxConfiguration/CscPbxGroup.vue index 03ca8178..92d2d527 100644 --- a/src/components/pages/PbxConfiguration/CscPbxGroup.vue +++ b/src/components/pages/PbxConfiguration/CscPbxGroup.vue @@ -2,17 +2,14 @@ - + - - {{ group.display_name }} + + {{ entityTitle }} - + - + - + - + - + - + @@ -145,6 +161,10 @@ QTransition }, computed: { + entityTitle() { + return this.group.display_name ? + this.group.display_name : this.group.username; + }, id() { return this.group.id; }, diff --git a/src/components/pages/PbxConfiguration/CscPbxGroups.vue b/src/components/pages/PbxConfiguration/CscPbxGroups.vue index 5e761eb9..679950f7 100644 --- a/src/components/pages/PbxConfiguration/CscPbxGroups.vue +++ b/src/components/pages/PbxConfiguration/CscPbxGroups.vue @@ -1,23 +1,67 @@