MT#62760 After Ring timeout CFSeat bugfix

If a pilot admin subscriber tries to change
the After Ring timeout for CFU set on one
of the seats, the CF config crashes
and change is not applied. This happens
because we are not passing the
subscriber_id of the Seat. In fact the
change in the CF is applied to the logged
in user instead. In this commit we pass
the subscriber_id attribute down the three
and improve the error handling.

Change-Id: I27b34a095263d18ca8d00b98bc3a528b4ee35f42
mr13.4
Debora Crescenzo 5 months ago committed by Crescenzo Debora
parent ec610a9596
commit f80f5974a0

@ -47,6 +47,7 @@
<script>
import CscInput from 'components/form/CscInput'
import { showGlobalError } from 'src/helpers/ui'
import { mapActions } from 'vuex'
export default {
name: 'CscPopupMenuRingTimeout',
@ -55,6 +56,10 @@ export default {
ringTimeout: {
type: Number,
required: true
},
subscriberId: {
type: [Number, String],
required: true
}
},
data () {
@ -70,8 +75,13 @@ export default {
]),
async updateRingTimeoutEvent (event) {
this.$wait.start('csc-cf-mappings-full')
await this.updateRingTimeout({ ringTimeout: event, subscriberId: this.subscriberId })
this.$wait.end('csc-cf-mappings-full')
try {
await this.updateRingTimeout({ ringTimeout: event, subscriberId: this.subscriberId })
} catch (err) {
showGlobalError(err.message)
} finally {
this.$wait.end('csc-cf-mappings-full')
}
}
}
}

@ -70,6 +70,7 @@
<csc-popup-menu-ring-timeout
v-if="isRingTimeoutVisible"
:ring-timeout="ringTimeout"
:subscriber-id="id"
/>
<div
v-for="group in groups"

Loading…
Cancel
Save