+
+
{{ $t('pbxConfig.noGroups') }}
@@ -116,7 +160,7 @@
let seats = [];
this.seats.forEach((seat)=>{
seats.push({
- label: seat.display_name,
+ label: seat.display_name ? seat.display_name : seat.username,
sublabel: this.$t('pbxConfig.extension') + ': ' + seat.pbx_extension,
value: seat.id
});
diff --git a/src/components/pages/PbxConfiguration/CscPbxSeat.vue b/src/components/pages/PbxConfiguration/CscPbxSeat.vue
index d5ab60e3..c47da199 100644
--- a/src/components/pages/PbxConfiguration/CscPbxSeat.vue
+++ b/src/components/pages/PbxConfiguration/CscPbxSeat.vue
@@ -1,36 +1,92 @@
-
- {{ seat.display_name }}
-
+
+
+ {{ entityTitle }}
+
+
{{ $t('pbxConfig.extension') }}: {{ seat.pbx_extension }}
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -84,6 +140,10 @@
QTransition
},
computed: {
+ entityTitle() {
+ return this.seat.display_name ?
+ this.seat.display_name : this.seat.username;
+ },
id() {
return this.seat.id;
},
diff --git a/src/components/pages/PbxConfiguration/CscPbxSeats.vue b/src/components/pages/PbxConfiguration/CscPbxSeats.vue
index f80aca60..1339e0fb 100644
--- a/src/components/pages/PbxConfiguration/CscPbxSeats.vue
+++ b/src/components/pages/PbxConfiguration/CscPbxSeats.vue
@@ -1,22 +1,63 @@
-
-
-
{{ $t('pbxConfig.addSeat') }}
+
+
+
+ {{ $t('pbxConfig.addSeat') }}
+
-
-
+
+
-
-
+
+
-
-
+
+
{{ $t('pbxConfig.noSeats') }}
@@ -121,7 +162,7 @@
let groups = [];
this.groups.forEach((group)=>{
groups.push({
- label: group.display_name,
+ label: group.display_name ? group.display_name : group.username,
sublabel: this.$t('pbxConfig.extension') + ': ' + group.pbx_extension,
value: group.id
});