summaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-07-20 12:36:07 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-07-20 13:51:35 +0200
commit7ad2486416380db56bcb25ae36c0fbbf5273791b (patch)
tree7e95d29ce349d290f6dbb9bbe47e29b906f6b044 /src/components
parent2e3592fc786447e7d77de2179642c765259b4157 (diff)
Revert "Split tooltips for audio, video and screen quality"
Diffstat (limited to 'src/components')
-rw-r--r--src/components/CallView/shared/LocalVideo.vue57
1 files changed, 9 insertions, 48 deletions
diff --git a/src/components/CallView/shared/LocalVideo.vue b/src/components/CallView/shared/LocalVideo.vue
index c5461efde..44ccc7dab 100644
--- a/src/components/CallView/shared/LocalVideo.vue
+++ b/src/components/CallView/shared/LocalVideo.vue
@@ -234,28 +234,18 @@ export default {
},
qualityWarningTooltip() {
- if (this.qualityWarningAudioTooltip) {
- return this.qualityWarningAudioTooltip
- }
-
- if (this.qualityWarningVideoTooltip) {
- return this.qualityWarningVideoTooltip
- }
-
- if (this.qualityWarningScreenTooltip) {
- return this.qualityWarningScreenTooltip
- }
-
- return null
- },
-
- qualityWarningAudioTooltip() {
- if (!this.showQualityWarning || !this.localMediaModel.attributes.audioEnabled) {
- return null
+ if (!this.showQualityWarning) {
+ return false
}
let message = ''
- if (this.localMediaModel.attributes.videoEnabled && this.localMediaModel.attributes.localScreen) {
+ if (!this.localMediaModel.attributes.audioEnabled && this.localMediaModel.attributes.videoEnabled && this.localMediaModel.attributes.localScreen) {
+ message = t('spreed', 'Your internet connection or computer are busy and other participants might be unable to see you. To improve the situation try to disable your video while doing a screenshare.')
+ } else if (!this.localMediaModel.attributes.audioEnabled && this.localMediaModel.attributes.localScreen) {
+ message = t('spreed', 'Your internet connection or computer are busy and other participants might be unable to see your screen.')
+ } else if (!this.localMediaModel.attributes.audioEnabled && this.localMediaModel.attributes.videoEnabled) {
+ message = t('spreed', 'Your internet connection or computer are busy and other participants might be unable to see you.')
+ } else if (this.localMediaModel.attributes.videoEnabled && this.localMediaModel.attributes.localScreen) {
message = t('spreed', 'Your internet connection or computer are busy and other participants might be unable to understand and see you. To improve the situation try to disable your video while doing a screenshare.')
} else if (this.localMediaModel.attributes.localScreen) {
message = t('spreed', 'Your internet connection or computer are busy and other participants might be unable to understand and see your screen. To improve the situation try to disable your screenshare.')
@@ -270,35 +260,6 @@ export default {
show: this.showQualityWarningTooltip,
}
},
-
- qualityWarningVideoTooltip() {
- if (!this.showQualityWarning || this.localMediaModel.attributes.audioEnabled || !this.localMediaModel.attributes.videoEnabled) {
- return null
- }
-
- let message = ''
- if (this.localMediaModel.attributes.localScreen) {
- message = t('spreed', 'Your internet connection or computer are busy and other participants might be unable to see you. To improve the situation try to disable your video while doing a screenshare.')
- } else {
- message = t('spreed', 'Your internet connection or computer are busy and other participants might be unable to see you.')
- }
-
- return {
- content: message,
- show: this.showQualityWarningTooltip,
- }
- },
-
- qualityWarningScreenTooltip() {
- if (!this.showQualityWarning || this.localMediaModel.attributes.audioEnabled || this.localMediaModel.attributes.videoEnabled || !this.localMediaModel.attributes.localScreen) {
- return null
- }
-
- return {
- content: t('spreed', 'Your internet connection or computer are busy and other participants might be unable to see your screen.'),
- show: this.showQualityWarningTooltip,
- }
- },
},
watch: {