From 35e13e6778566a6f5f020f9034c93aaf3c9eaf5b Mon Sep 17 00:00:00 2001 From: Hans-Peter Herzog Date: Wed, 11 Jul 2018 17:44:21 +0200 Subject: [PATCH] TT#40099 PBXConfig: As a Customer, I want to stay in the expanded seat/group after saving a single field Change-Id: I1aae3b8afa95905ffad586d1b7308b1d1c00473f --- src/api/pbx-config.js | 8 ++ .../pages/PbxConfiguration/CscPbxGroup.vue | 82 +++++++++++++++---- .../pages/PbxConfiguration/CscPbxGroups.vue | 2 +- .../pages/PbxConfiguration/CscPbxSeats.vue | 2 +- src/store/pbx-config/actions.js | 71 +++++++++++++--- src/store/pbx-config/mutations.js | 48 +++++++++++ src/store/pbx-config/state.js | 6 ++ 7 files changed, 191 insertions(+), 28 deletions(-) diff --git a/src/api/pbx-config.js b/src/api/pbx-config.js index 8edb2436..e53993ce 100644 --- a/src/api/pbx-config.js +++ b/src/api/pbx-config.js @@ -29,6 +29,10 @@ export function getGroups(options) { }); } +export function getGroup(groupId) { + return getSubscriber(groupId); +} + export function getSeats(options) { return new Promise((resolve, reject)=>{ options = options || {}; @@ -46,6 +50,10 @@ export function getSeats(options) { }); } +export function getSeat(seatId) { + return getSubscriber(seatId); +} + export function getAllGroupsAndSeats(options) { return new Promise((resolve, reject)=>{ options = options || {}; diff --git a/src/components/pages/PbxConfiguration/CscPbxGroup.vue b/src/components/pages/PbxConfiguration/CscPbxGroup.vue index be4fe5a1..03ca8178 100644 --- a/src/components/pages/PbxConfiguration/CscPbxGroup.vue +++ b/src/components/pages/PbxConfiguration/CscPbxGroup.vue @@ -1,17 +1,56 @@