|
|
|
@ -86,10 +86,10 @@
|
|
|
|
|
<router-view />
|
|
|
|
|
<q-fixed-position id="global-action-btn" corner="top-right" :offset="fabOffset" class="page-button transition-generic">
|
|
|
|
|
<q-fab v-if="hasCommunicationCapabilities" color="primary" icon="question answer" active-icon="clear" direction="down" flat>
|
|
|
|
|
<q-fab-action v-if="hasFaxCapability" color="primary" @click="" icon="fa-fax">
|
|
|
|
|
<q-fab-action v-if="hasFaxCapability && hasSendFaxFeature" color="primary" @click="" icon="fa-fax">
|
|
|
|
|
<q-tooltip anchor="center right" self="center left" :offset="[15, 0]">{{ $t('sendFax') }}</q-tooltip>
|
|
|
|
|
</q-fab-action>
|
|
|
|
|
<q-fab-action v-if="hasSmsCapability" color="primary" @click="" icon="fa-send">
|
|
|
|
|
<q-fab-action v-if="hasSmsCapability && hasSendSmsFeature" color="primary" @click="" icon="fa-send">
|
|
|
|
|
<q-tooltip anchor="center right" self="center left" :offset="[15, 0]">{{ $t('sendSms') }}</q-tooltip>
|
|
|
|
|
</q-fab-action>
|
|
|
|
|
<q-fab-action v-if="isCallAvailable" color="primary" @click="call()" icon="fa-phone">
|
|
|
|
@ -188,7 +188,9 @@
|
|
|
|
|
'getUsername',
|
|
|
|
|
'isPbxAdmin',
|
|
|
|
|
'hasSmsCapability',
|
|
|
|
|
'hasFaxCapability'
|
|
|
|
|
'hasFaxCapability',
|
|
|
|
|
'hasSendSmsFeature',
|
|
|
|
|
'hasSendFaxFeature'
|
|
|
|
|
]),
|
|
|
|
|
...mapState({
|
|
|
|
|
isCallForward: state => _.startsWith(state.route.path, '/user/call-forward'),
|
|
|
|
@ -196,7 +198,9 @@
|
|
|
|
|
isPbxConfiguration: state => _.startsWith(state.route.path, '/user/pbx-configuration')
|
|
|
|
|
}),
|
|
|
|
|
hasCommunicationCapabilities() {
|
|
|
|
|
return this.isCallAvailable || this.hasSmsCapability || this.hasFaxCapability;
|
|
|
|
|
return this.isCallAvailable ||
|
|
|
|
|
(this.hasSmsCapability && this.hasSendSmsFeature) ||
|
|
|
|
|
(this.hasFaxCapability && this.hasSendFaxFeature);
|
|
|
|
|
},
|
|
|
|
|
callClasses() {
|
|
|
|
|
let classes = {};
|
|
|
|
|