@ -9,6 +9,8 @@ import {
mapGetters
mapGetters
} from 'vuex'
} from 'vuex'
import CscMainMenu from 'components/CscMainMenu'
import CscMainMenu from 'components/CscMainMenu'
import { PROFILE _ATTRIBUTE _MAP , PROFILE _ATTRIBUTES _MAP } from 'src/constants'
export default {
export default {
name : 'CscMainMenuTop' ,
name : 'CscMainMenuTop' ,
components : {
components : {
@ -49,6 +51,7 @@ export default {
'isPbxEnabled' ,
'isPbxEnabled' ,
'hasFaxCapability' ,
'hasFaxCapability' ,
'hasSubscriberProfileAttribute' ,
'hasSubscriberProfileAttribute' ,
'hasSubscriberProfileAttributes' ,
'getCustomerId' ,
'getCustomerId' ,
'isOldCSCProxyingAllowed'
'isOldCSCProxyingAllowed'
] ) ,
] ) ,
@ -83,13 +86,13 @@ export default {
to : '/user/call-settings' ,
to : '/user/call-settings' ,
icon : 'settings' ,
icon : 'settings' ,
label : this . $t ( 'General' ) ,
label : this . $t ( 'General' ) ,
visible : true
visible : this . hasSubscriberProfileAttributes ( PROFILE _ATTRIBUTES _MAP . callSettings )
} ,
} ,
{
{
to : '/user/voicebox' ,
to : '/user/voicebox' ,
icon : 'voicemail' ,
icon : 'voicemail' ,
label : this . $t ( 'Voicebox' ) ,
label : this . $t ( 'Voicebox' ) ,
visible : this . hasSubscriberProfileAttribute ( 'voice_mail' )
visible : this . hasSubscriberProfileAttribute ( PROFILE _ATTRIBUTE _MAP . voiceMail )
} ,
} ,
{
{
to : '/user/call-forwarding' ,
to : '/user/call-forwarding' ,
@ -101,31 +104,31 @@ export default {
to : '/user/call-blocking/incoming' ,
to : '/user/call-blocking/incoming' ,
icon : 'call_received' ,
icon : 'call_received' ,
label : this . $t ( 'Block incoming' ) ,
label : this . $t ( 'Block incoming' ) ,
visible : true
visible : this . hasSubscriberProfileAttributes ( PROFILE _ATTRIBUTES _MAP . callBlockingIncoming )
} ,
} ,
{
{
to : '/user/call-blocking/outgoing' ,
to : '/user/call-blocking/outgoing' ,
icon : 'call_made' ,
icon : 'call_made' ,
label : this . $t ( 'Block outgoing' ) ,
label : this . $t ( 'Block outgoing' ) ,
visible : true
visible : this . hasSubscriberProfileAttributes ( PROFILE _ATTRIBUTES _MAP . callBlockingOutgoing )
} ,
} ,
{
{
to : '/user/call-blocking/privacy' ,
to : '/user/call-blocking/privacy' ,
icon : 'fas fa-user-secret' ,
icon : 'fas fa-user-secret' ,
label : this . $t ( 'Privacy' ) ,
label : this . $t ( 'Privacy' ) ,
visible : true
visible : this . hasSubscriberProfileAttribute ( PROFILE _ATTRIBUTE _MAP . callBlockingPrivacy )
} ,
} ,
{
{
to : '/user/speeddial' ,
to : '/user/speeddial' ,
icon : 'touch_app' ,
icon : 'touch_app' ,
label : this . $t ( 'Speed Dial' ) ,
label : this . $t ( 'Speed Dial' ) ,
visible : this . hasSubscriberProfileAttribute ( 'speed_dial' )
visible : this . hasSubscriberProfileAttribute ( PROFILE _ATTRIBUTE _MAP . speedDial )
} ,
} ,
{
{
to : '/user/reminder' ,
to : '/user/reminder' ,
icon : 'notification_important' ,
icon : 'notification_important' ,
label : this . $t ( 'Reminder' ) ,
label : this . $t ( 'Reminder' ) ,
visible : this . hasSubscriberProfileAttribute ( 'reminder' )
visible : this . hasSubscriberProfileAttribute ( PROFILE _ATTRIBUTE _MAP . reminder )
} ,
} ,
{
{
to : '/user/recordings' ,
to : '/user/recordings' ,
@ -139,7 +142,7 @@ export default {
to : '/user/fax-settings' ,
to : '/user/fax-settings' ,
icon : 'fas fa-fax' ,
icon : 'fas fa-fax' ,
label : this . $t ( 'Fax Settings' ) ,
label : this . $t ( 'Fax Settings' ) ,
visible : this . hasFaxCapability && this . hasSubscriberProfileAttribute ( 'fax_server' )
visible : this . hasFaxCapability && this . hasSubscriberProfileAttribute ( PROFILE _ATTRIBUTE _MAP . faxServer )
} ,
} ,
{
{
icon : 'miscellaneous_services' ,
icon : 'miscellaneous_services' ,
@ -195,7 +198,7 @@ export default {
to : '/user/pbx-settings' ,
to : '/user/pbx-settings' ,
icon : 'settings' ,
icon : 'settings' ,
label : this . $t ( 'PBX Settings' ) ,
label : this . $t ( 'PBX Settings' ) ,
visible : this . isPbxEnabled
visible : this . isPbxEnabled && this . hasSubscriberProfileAttribute ( PROFILE _ATTRIBUTE _MAP . pbxSettings )
} ,
} ,
{
{
to : '/user/registered-devices' ,
to : '/user/registered-devices' ,