TT#44287 Conferencing: Replace hard coded strings

Change-Id: I02085ada23462763db5f0b0b070c986f7fe9431c
changes/84/29984/1
Hans-Peter Herzog 7 years ago
parent 1b070aaa8a
commit fd9d72d116

@ -17,7 +17,7 @@
flat
@click="confirm"
>
{{ $t('buttons.exit') }}
{{ $t('buttons.confirm') }}
</q-btn>
</csc-dialog>
</template>

@ -87,7 +87,8 @@
<csc-confirm-dialog
ref="confirmDialog"
title-icon="exit_to_app"
title="Exit conference"
:title="$t('conferencing.exitDialogTitle')"
:message="$t('conferencing.exitDialogText')"
@confirm="leave"
/>
</q-layout>

@ -15,7 +15,7 @@
id="csc-conf-link-input"
dark
:value="conferenceIdInput"
placeholder="Conference name"
:placeholder="$t('conferencing.idPlaceholder')"
align="left"
@change="conferenceIdChanged"
:disable="isJoining"
@ -26,7 +26,7 @@
flat
icon="link"
@click="showShareDialog"
>Share</q-btn>
>{{ $t('conferencing.shareButtonLabel') }}</q-btn>
</q-input>
<q-btn
class="csc-button"

@ -1,7 +1,7 @@
<template>
<csc-dialog
ref="dialogComp"
:title="'Share conference'"
:title="$t('conferencing.shareDialogTitle')"
:titleIcon="'link'"
>
<div
@ -22,7 +22,7 @@
icon="link"
@click="copy"
>
Copy link
{{ $t('conferencing.copyLinkButtonLabel') }}
</q-btn>
</csc-dialog>
</template>

@ -539,6 +539,13 @@
"busy": "busy"
},
"conferencing": {
"joinText": "Join conference with name"
"joinText": "Join conference with name",
"idPlaceholder": "Conference name",
"shareButtonLabel": "Share",
"shareDialogTitle": "Share conference",
"copyLinkButtonLabel": "Copy link",
"exitDialogTitle": "Leave conference",
"exitDialogText": "Leave current conference now!",
"leaveButtonLabel": "Leave"
}
}

@ -189,6 +189,9 @@ export default {
let localMediaStream;
media.build().then(($localMediaStream)=>{
localMediaStream = $localMediaStream;
localMediaStream.onVideoEnded(()=>{
context.dispatch('createLocalMedia', MediaTypes.mic);
});
Vue.$conference.setLocalMediaStream(localMediaStream);
switch(type) {
default:
@ -229,7 +232,9 @@ export default {
}).then(()=>{
context.commit('localMediaSucceeded', localMediaStream);
}).catch((err)=>{
context.commit('localMediaFailed', err.message);
if(!context.getters.hasLocalMediaStream) {
context.commit('localMediaFailed', err.message);
}
});
},
enableMicrophone(context) {

Loading…
Cancel
Save