MT#58237 setting/unsetting a soundset as Default for subscribers return an error code

Change-Id: I9d04b698b3923e867f4a5243dc7f7f709cef726d
(cherry picked from commit 57d4c4ab87)
mr11.5
Hugo Zigha 2 years ago committed by Marco Capetta
parent dc1ad55344
commit b2f64b5e5d

@ -4,7 +4,7 @@
icon="queue_music"
:odd="odd"
:loading="loading"
:show-more-menu="soundSet.customer_id"
:show-more-menu="showMoreMenu"
@click="showSoundSetDetails"
>
<template
@ -97,6 +97,12 @@ export default {
]),
parent () {
return this.soundSet.parent_id ? this.soundSetList.find((soundSet) => this.soundSet.parent_id === soundSet.id) : null
},
showMoreMenu () {
if (this.soundSet.customer_id) {
return true
}
return false
}
},
methods: {

@ -187,7 +187,7 @@ export default {
const index = state.soundSetList.findIndex((soundSetItem) => soundSetItem.id === soundSet.id)
state.soundSetMap[soundSet.id] = soundSet
state.soundSetList[index] = soundSet
if (state.soundSetSelected.id === soundSet.id) {
if (state?.soundSetSelected?.id === soundSet.id) {
state.soundSetSelected = soundSet
}
},

Loading…
Cancel
Save