diff --git a/src/components/CscCall.vue b/src/components/CscCall.vue index 2c704863..b2c1ec52 100644 --- a/src/components/CscCall.vue +++ b/src/components/CscCall.vue @@ -29,6 +29,11 @@ + + {{ $t('call.desktopSharingNotInstalled') }} + +
@@ -78,7 +83,7 @@ import { mapState, mapGetters } from 'vuex' import CscMedia from './CscMedia' import { QLayout, QCard, QCardTitle, QCardSeparator, QCardMain, QField, QInput, - QCardActions, QBtn, QIcon, Loading, Alert, QSpinnerRings, Dialog, Platform } from 'quasar-framework' + QCardActions, QBtn, QIcon, Loading, Alert, QSpinnerRings, Dialog, Platform, QAlert } from 'quasar-framework' import { normalizeNumber, rawNumber } from '../filters/number-format' import numberFormat from '../filters/number-format' import { showCallNotification } from '../helpers/ui' @@ -106,7 +111,8 @@ QIcon, QSpinnerRings, CscMedia, - Dialog + Dialog, + QAlert }, methods: { focusNumberInput() { @@ -280,10 +286,29 @@ 'remoteMediaType', 'isCaller', 'isCallee', - 'callState' + 'callState', + 'desktopSharingInstall' ]), isMobile() { return Platform.is.mobile; + }, + desktopSharingAlertActions() { + var self = this; + return [ + { + label: 'Install', + handler () { + self.$store.commit('call/desktopSharingInstallReset'); + window.open('https://chrome.google.com/webstore/detail/sipwise-desktop-sharing/pijbeibohoabifpookfeljlmkpedpcne'); + } + }, + { + label: 'Cancel', + handler () { + self.$store.commit('call/desktopSharingInstallReset'); + } + } + ] } }, watch: { @@ -370,4 +395,8 @@ z-index: 10; } + .csc-call .q-alert-container { + margin-bottom: 16px; + } + diff --git a/src/components/pages/Home.vue b/src/components/pages/Home.vue index d491359d..c332aff0 100644 --- a/src/components/pages/Home.vue +++ b/src/components/pages/Home.vue @@ -146,7 +146,7 @@ } -