MT#57305 Fix ringtimeout configuration on CFT for seats/groups

Change-Id: I8b45b5905605ff4ea7f92e89edefcbfb5821d56a
mr11.4
Marco Capetta 2 years ago
parent bba8cabc81
commit f2d08d862b

@ -35,6 +35,7 @@
:destination-set="destinationSet" :destination-set="destinationSet"
:source-set="sourceSet" :source-set="sourceSet"
:time-set="timeSet" :time-set="timeSet"
:subscriber-id="subscriberId"
@delete-last="$refs.cfGroupTitle.deleteMappingEvent(mapping)" @delete-last="$refs.cfGroupTitle.deleteMappingEvent(mapping)"
/> />
</template> </template>

@ -193,6 +193,10 @@ export default {
loading: { loading: {
type: Boolean, type: Boolean,
default: false default: false
},
subscriberId: {
type: String,
default: ''
} }
}, },
data () { data () {
@ -274,7 +278,7 @@ export default {
}, },
async updateRingTimeoutEvent () { async updateRingTimeoutEvent () {
this.$wait.start('csc-cf-mappings-full') this.$wait.start('csc-cf-mappings-full')
await this.updateRingTimeout(this.changedDestinationTimeout) await this.updateRingTimeout({ringTimeout: this.changedDestinationTimeout, subscriberId: this.subscriberId})
this.$wait.end('csc-cf-mappings-full') this.$wait.end('csc-cf-mappings-full')
}, },
setAnnouncement () { setAnnouncement () {

@ -408,12 +408,12 @@ export async function doNotRingPrimaryNumber ({ commit, rootGetters, state }, pa
}) })
} }
export async function updateRingTimeout ({ commit, rootGetters, state }, ringTimeout) { export async function updateRingTimeout ({ commit, rootGetters, state }, payload) {
const updatedMappings = await patchReplaceFull({ const updatedMappings = await patchReplaceFull({
resource: 'cfmappings', resource: 'cfmappings',
resourceId: rootGetters['user/getSubscriberId'], resourceId: (payload.subscriberId) ? payload.subscriberId : rootGetters['user/getSubscriberId'],
fieldPath: 'cft_ringtimeout', fieldPath: 'cft_ringtimeout',
value: ringTimeout value: payload.ringTimeout
}) })
commit('dataSucceeded', { commit('dataSucceeded', {
mappings: updatedMappings mappings: updatedMappings

Loading…
Cancel
Save