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 3 months ago
parent 13db81ee7e
commit 22a0697ae3

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

@ -286,10 +286,11 @@
"Logout": "Abmelden",
"Loop": "Wiederholen",
"MAC address": "MAC-Adresse",
"Mail to Fax": "Mail-zu-Fax",
"Manager Secretary": "Chef-Sekretär",
"Manager Secretary feature": "Funktion Chef-Sekretär",
"ManagerSecretary": "Chef-Sekretär",
"Mail To Fax feature is not active": "„Mail To Fax“-Funktion ist nicht aktiv",
"Mail to Fax": "Mail To Fax",
"Manager Secretary": "Geschäftsführungssekretariat",
"Manager Secretary feature": "Manager Sekretär Funktion",
"ManagerSecretary": "Geschäftsführungssekretariat",
"March": "März",
"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",

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

@ -287,6 +287,7 @@
"Logout": "Cerrar sesión",
"Loop": "Bucle",
"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",
"Manager Secretary": "Gerente-Asistente",
"Manager Secretary feature": "Característica de Gerente-Asistente",

@ -286,6 +286,7 @@
"Logout": "Déconnexion",
"Loop": "Boucle",
"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",
"Manager Secretary": "Secrétaire de direction",
"Manager Secretary feature": "Fonctionnalité secrétaire du gestionnaire",

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

Loading…
Cancel
Save