From d5bc3d4552d442697a31a0b9ab5a59d875086f8b Mon Sep 17 00:00:00 2001 From: raxelsen Date: Fri, 15 Feb 2019 14:55:16 +0100 Subject: [PATCH] TT#52801 Subscriber Admin wants to remove soundset Change-Id: If1da600108000c532a3fef5ae75bb97cd4bede1e --- src/api/pbx-config.js | 4 + .../pages/PbxConfiguration/CscPbxSoundSet.vue | 19 ++- .../PbxConfiguration/CscPbxSoundSets.vue | 28 +++- src/locales/en.json | 4 +- src/store/pbx-config/actions.js | 149 ++++++++++-------- 5 files changed, 131 insertions(+), 73 deletions(-) diff --git a/src/api/pbx-config.js b/src/api/pbx-config.js index 0b85908c..c6866528 100644 --- a/src/api/pbx-config.js +++ b/src/api/pbx-config.js @@ -712,3 +712,7 @@ export function getSoundFilesGrouped(options) { }); }); } + +export function removeSoundSet(id) { + return Vue.http.delete('api/soundsets/' + id); +} diff --git a/src/components/pages/PbxConfiguration/CscPbxSoundSet.vue b/src/components/pages/PbxConfiguration/CscPbxSoundSet.vue index 5e48e545..71b56df9 100644 --- a/src/components/pages/PbxConfiguration/CscPbxSoundSet.vue +++ b/src/components/pages/PbxConfiguration/CscPbxSoundSet.vue @@ -25,8 +25,12 @@ sublabel >
- {{ $t('pbxConfig.description') }}: - {{ set.description }} + + {{ $t('pbxConfig.description') }}: + + + {{ set.description }} +
+
{{ $t('pbxConfig.noSoundSets') }}
+