MT#56399 Give option to disable SIP-password-change in CSC

Change-Id: I0643efa770fa720c45035a04221cf8c52ca13acf
pull/27/merge
nouhaila 3 years ago
parent 58361b087e
commit 4c80215e00

@ -17,6 +17,7 @@
@change="requestWebPasswordChange" @change="requestWebPasswordChange"
/> />
<csc-change-password-embedded <csc-change-password-embedded
v-if= "isAdministrative"
ref="changeSipPasswordSection" ref="changeSipPasswordSection"
class="q-mb-md" class="q-mb-md"
:btn-label="$t('Change SIP Password')" :btn-label="$t('Change SIP Password')"
@ -73,6 +74,7 @@ import { mapWaitingActions, mapWaitingGetters } from 'vue-wait'
import { copyToClipboard } from 'quasar' import { copyToClipboard } from 'quasar'
import CscInputPassword from 'components/form/CscInputPassword' import CscInputPassword from 'components/form/CscInputPassword'
const WAIT_CHANGE_WEB_PASSWORD = 'processing-changeWebPassword' const WAIT_CHANGE_WEB_PASSWORD = 'processing-changeWebPassword'
const WAIT_CHANGE_SIP_PASSWORD = 'processing-changeSIPPassword' const WAIT_CHANGE_SIP_PASSWORD = 'processing-changeSIPPassword'
@ -98,6 +100,9 @@ export default {
currentSIPPassword () { currentSIPPassword () {
return this.getSubscriber?.password || '' return this.getSubscriber?.password || ''
}, },
isAdministrative () {
return this.getSubscriber?.administrative || false
},
currentSIPURI () { currentSIPURI () {
const subscriberData = this.getSubscriber const subscriberData = this.getSubscriber
return subscriberData?.username + '@' + subscriberData?.domain return subscriberData?.username + '@' + subscriberData?.domain

Loading…
Cancel
Save