diff --git a/src/components/CscCall.vue b/src/components/CscCall.vue index c92f28ea..b9921556 100644 --- a/src/components/CscCall.vue +++ b/src/components/CscCall.vue @@ -59,12 +59,12 @@ - + - + diff --git a/src/components/pages/Home.vue b/src/components/pages/Home.vue index 8459eb12..bcd1e6ca 100644 --- a/src/components/pages/Home.vue +++ b/src/components/pages/Home.vue @@ -32,9 +32,9 @@
-
- + @@ -100,7 +100,7 @@ import CscPage from '../CscPage' import CscCall from '../CscCall' import { mapGetters } from 'vuex' - import { QCard, QCardMain, QCardActions, QIcon } from 'quasar-framework' + import { QCard, QCardMain, QCardActions, QIcon, Platform } from 'quasar-framework' import { showGlobalWarning } from '../../helpers/ui' export default { @@ -119,7 +119,10 @@ computed: { ...mapGetters('call', [ 'isCallAvailable' - ]) + ]), + isMobile() { + return Platform.is.mobile; + } }, methods: { call() { @@ -129,6 +132,13 @@ showGlobalWarning(this.$i18n.t('pages.home.featureNotAvailable')); } }, + screenShare() { + if(this.isCallAvailable && !this.isMobile) { + this.$store.commit('layout/showRight'); + } else { + showGlobalWarning(this.$i18n.t('pages.home.featureNotAvailable')); + } + }, buddyList() { showGlobalWarning(this.$i18n.t('pages.home.featureNotAvailable')); }