+ v-if="hasGroups"
+ >
+ class="csc-item-label"
+ >
{{ $t('pbxConfig.groups') }}:
{
+ context.commit('callQueueListSucceeded', list);
+ }).catch((err) => {
+ context.commit('callQueueListFailed', err.message);
+ });
}
}
diff --git a/src/store/pbx-config/getters.js b/src/store/pbx-config/getters.js
index 95d872a8..bba6e262 100644
--- a/src/store/pbx-config/getters.js
+++ b/src/store/pbx-config/getters.js
@@ -295,5 +295,8 @@ export default {
},
chipStationNameFilter(state) {
return state.chipStationNameFilter;
+ },
+ callQueueGroupsAndSeats(state) {
+ return state.callQueueGroupsAndSeats;
}
}
diff --git a/src/store/pbx-config/mutations.js b/src/store/pbx-config/mutations.js
index 2e139a1d..450f2ca4 100644
--- a/src/store/pbx-config/mutations.js
+++ b/src/store/pbx-config/mutations.js
@@ -404,5 +404,21 @@ export default {
seatReloadingFailed(state, err) {
state.seatReloadingState = RequestState.failed;
state.seatReloadingError = err;
+ },
+ callQueueListRequesting(state, options) {
+ options = options || {};
+ state.listLoadingSilently = _.get(options, 'silent', false);
+ state.listState = RequestState.requesting;
+ state.listError = null;
+ state.callQueueGroupsAndSeats = [];
+ },
+ callQueueListSucceeded(state, data) {
+ state.listState = RequestState.succeeded;
+ state.listError = null;
+ state.callQueueGroupsAndSeats = data.items;
+ },
+ callQueueListFailed(state, error) {
+ state.listState = RequestState.failed;
+ state.listError = error;
}
}
diff --git a/src/store/pbx-config/state.js b/src/store/pbx-config/state.js
index 22706903..18041a10 100644
--- a/src/store/pbx-config/state.js
+++ b/src/store/pbx-config/state.js
@@ -69,5 +69,6 @@ export default {
seatReloadingError: null,
chipModelFilter: null,
chipMacAddressFilter: null,
- chipStationNameFilter: null
+ chipStationNameFilter: null,
+ callQueueGroupsAndSeats: []
}
diff --git a/src/themes/app.common.styl b/src/themes/app.common.styl
index 8f74efa7..716f33ec 100644
--- a/src/themes/app.common.styl
+++ b/src/themes/app.common.styl
@@ -28,14 +28,6 @@
.csc-item-value:last-child:after
content ''
-.csc-list-item
- position relative
- .csc-list-item-main
- padding-top 16px
-
-.csc-item-title
- text-overflow ellipsis
-
.csc-item-label
font-weight normal
@@ -108,6 +100,7 @@
align-items center
color $body-color
padding $flex-gutter-sm
+ padding-left $flex-gutter-sm * 1.4
.q-item-label
color $body-color
span
@@ -116,6 +109,12 @@
color $body-color
span
color $body-color
+.csc-list-item.csc-item-collapsed.q-item
+ .q-item-main
+ margin-left $flex-gutter-sm * 1.4
+ .q-item-side-left
+ min-width auto
+
.csc-list-form
padding $flex-gutter-sm
.csc-username
@@ -164,3 +163,24 @@
.q-inner-loading
background $main-menu-background
+
+.csc-item-title
+ font-weight bold
+ text-overflow ellipsis
+ .csc-item-label
+ font-weight bold
+ vertical-align middle
+ i
+ vertical-align middle
+.csc-item-subtitle
+ .csc-item-label
+ font-weight normal
+ .csc-item-value
+ font-weight bold
+
+.q-chip.text-white
+ color $dark
+ .q-chip-main
+ color $dark
+ .q-chip-side
+ color $dark
diff --git a/src/themes/app.variables.styl b/src/themes/app.variables.styl
index 314937c9..45e6983e 100644
--- a/src/themes/app.variables.styl
+++ b/src/themes/app.variables.styl
@@ -64,7 +64,7 @@ $toolbar-min-height = 60px
$layout-header-shadow = $no-shadow
$layout-aside-background = $main-menu-background
$layout-aside-shadow = $no-shadow
-$layout-aside-left-width = 260px
+$layout-aside-left-width = 280px
$layout-aside-right-width = 320px
$layout-footer-shadow = $no-shadow
@@ -92,3 +92,5 @@ $call-footer-height-mobile = $call-footer-height * 1.4
$popover-box-shadow = $shadow-1
$loading-background = $main-menu-background
+
+$chip-color = $dark