From 66ed5ff07d7c5613563fa082fc63e6962e54d861 Mon Sep 17 00:00:00 2001 From: Hans-Peter Herzog Date: Mon, 26 Feb 2018 18:16:02 +0100 Subject: [PATCH] TT#33307 Call: As a Customer I want to see the desktop sharing button only if device has the capability Change-Id: I713cad9d0b90ce49d4654aad869ed4c7a824c1ba --- src/components/CscCall.vue | 4 ++-- src/components/pages/Home.vue | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) 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')); }