Revert "MT#61383 Allow admin PBX users to toggle Mail2Fax feature"

This reverts commit 694d697ac7.
NGCP-Flow: mr12.5

Reason for revert: Feature available from 13.5.X

Change-Id: Ide7b1998b3d4b0295acfc1c1a80d556358abbd26
(cherry picked from commit 9ed5ccf1ae)
mr12.5.1
Crescenzo Debora 10 months ago
parent 13db81ee7e
commit 22a0697ae3

@ -1,5 +1,17 @@
<template> <template>
<div> <div
v-if="!mailToFaxSettingsModel.active"
class="q-pa-md"
>
<csc-spinner
v-if="loadingMail2FaxSettings"
class="self-center"
/>
<div v-else>
{{ $t('Mail To Fax feature is not active') }}
</div>
</div>
<div v-else>
<q-list <q-list
class="col col-xs-12 col-md-6" class="col col-xs-12 col-md-6"
dense dense
@ -9,8 +21,7 @@
<q-toggle <q-toggle
:model-value="mailToFaxSettingsModel.active" :model-value="mailToFaxSettingsModel.active"
:label="$t('Active')" :label="$t('Active')"
:disable="disableToggle" :disable="true"
@update:model-value="setChangedData('active', !mailToFaxSettingsModel.active)"
/> />
</q-item-section> </q-item-section>
<q-item-section <q-item-section
@ -200,7 +211,7 @@
<script> <script>
import _ from 'lodash' import _ from 'lodash'
import { mapGetters, mapState } from 'vuex' import { mapState } from 'vuex'
import { mapWaitingActions, mapWaitingGetters } from 'vue-wait' import { mapWaitingActions, mapWaitingGetters } from 'vue-wait'
import { showGlobalError } from 'src/helpers/ui' import { showGlobalError } from 'src/helpers/ui'
import CscSpinner from 'components/CscSpinner' import CscSpinner from 'components/CscSpinner'
@ -241,24 +252,12 @@ export default {
'mailToFaxSettings', 'mailToFaxSettings',
'mailToFaxSettingsInitialized' 'mailToFaxSettingsInitialized'
]), ]),
...mapGetters('user', [
'getSubscriber'
]),
...mapWaitingGetters({ ...mapWaitingGetters({
loadingMail2FaxSettings: 'loading mail2faxSettings' loadingMail2FaxSettings: 'loading mail2faxSettings'
}), }),
dataLoaded () { dataLoaded () {
return this.mailToFaxSettingsInitialized && !this.loadingMail2FaxSettings return this.mailToFaxSettingsInitialized && !this.loadingMail2FaxSettings
}, },
disableToggle () {
if (!this.isAdministrator) {
return true
}
return !this.dataLoaded
},
isAdministrator () {
return this.getSubscriber?.administrative || false
},
secretKeyFieldLabel () { secretKeyFieldLabel () {
let label = this.$t('Secret Key (empty=disabled)') let label = this.$t('Secret Key (empty=disabled)')
label += ' (' + this.$t('Last Modify Time') + ': ' label += ' (' + this.$t('Last Modify Time') + ': '

@ -286,10 +286,11 @@
"Logout": "Abmelden", "Logout": "Abmelden",
"Loop": "Wiederholen", "Loop": "Wiederholen",
"MAC address": "MAC-Adresse", "MAC address": "MAC-Adresse",
"Mail to Fax": "Mail-zu-Fax", "Mail To Fax feature is not active": "„Mail To Fax“-Funktion ist nicht aktiv",
"Manager Secretary": "Chef-Sekretär", "Mail to Fax": "Mail To Fax",
"Manager Secretary feature": "Funktion Chef-Sekretär", "Manager Secretary": "Geschäftsführungssekretariat",
"ManagerSecretary": "Chef-Sekretär", "Manager Secretary feature": "Manager Sekretär Funktion",
"ManagerSecretary": "Geschäftsführungssekretariat",
"March": "März", "March": "März",
"Maximum allowed extension is {max}": "Die maximal zulässige Länge der Durchwahl ist {max}", "Maximum allowed extension is {max}": "Die maximal zulässige Länge der Durchwahl ist {max}",
"Maximum calls in queue": "Maximale Anzahl an Anrufen in der Warteschlange", "Maximum calls in queue": "Maximale Anzahl an Anrufen in der Warteschlange",

@ -278,6 +278,7 @@
"Logout": "Logout", "Logout": "Logout",
"Loop": "Loop", "Loop": "Loop",
"MAC address": "MAC address", "MAC address": "MAC address",
"Mail To Fax feature is not active": "Mail To Fax feature is not active",
"Mail to Fax": "Mail to Fax", "Mail to Fax": "Mail to Fax",
"Manager Secretary": "Manager Secretary", "Manager Secretary": "Manager Secretary",
"Manager Secretary feature": "Manager Secretary feature", "Manager Secretary feature": "Manager Secretary feature",

@ -287,6 +287,7 @@
"Logout": "Cerrar sesión", "Logout": "Cerrar sesión",
"Loop": "Bucle", "Loop": "Bucle",
"MAC address": "Dirección MAC", "MAC address": "Dirección MAC",
"Mail To Fax feature is not active": "La función Correo a Fax no está activada",
"Mail to Fax": "Correo a Fax", "Mail to Fax": "Correo a Fax",
"Manager Secretary": "Gerente-Asistente", "Manager Secretary": "Gerente-Asistente",
"Manager Secretary feature": "Característica de Gerente-Asistente", "Manager Secretary feature": "Característica de Gerente-Asistente",

@ -286,6 +286,7 @@
"Logout": "Déconnexion", "Logout": "Déconnexion",
"Loop": "Boucle", "Loop": "Boucle",
"MAC address": "Adresse MAC", "MAC address": "Adresse MAC",
"Mail To Fax feature is not active": "La fonction Mail To Fax n'est pas active",
"Mail to Fax": "Envoyer par fax", "Mail to Fax": "Envoyer par fax",
"Manager Secretary": "Secrétaire de direction", "Manager Secretary": "Secrétaire de direction",
"Manager Secretary feature": "Fonctionnalité secrétaire du gestionnaire", "Manager Secretary feature": "Fonctionnalité secrétaire du gestionnaire",

@ -282,6 +282,7 @@
"Logout": "Esci", "Logout": "Esci",
"Loop": "Ciclo", "Loop": "Ciclo",
"MAC address": "Indirizzo MAC", "MAC address": "Indirizzo MAC",
"Mail To Fax feature is not active": "La funzione Mail To Fax non è attiva",
"Mail to Fax": "Mail to Fax", "Mail to Fax": "Mail to Fax",
"Manager Secretary": "Segreteria", "Manager Secretary": "Segreteria",
"Manager Secretary feature": "Funzione Segreteria", "Manager Secretary feature": "Funzione Segreteria",

Loading…
Cancel
Save