mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
added notes lable translation
This commit is contained in:
parent
2c416d5150
commit
b0fd1a2cd6
@ -176,7 +176,9 @@ export const en = {
|
|||||||
|
|
||||||
integrated: 'Integrated',
|
integrated: 'Integrated',
|
||||||
microphone: 'Microphone',
|
microphone: 'Microphone',
|
||||||
camera: 'Camera'
|
camera: 'Camera',
|
||||||
|
|
||||||
|
notes: 'Notes',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const fr = {
|
export const fr = {
|
||||||
@ -357,7 +359,9 @@ export const fr = {
|
|||||||
|
|
||||||
integrated: 'Intégré',
|
integrated: 'Intégré',
|
||||||
microphone: 'Microphone',
|
microphone: 'Microphone',
|
||||||
camera: 'Caméra'
|
camera: 'Caméra',
|
||||||
|
|
||||||
|
notes: 'Notes',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const sp = {
|
export const sp = {
|
||||||
@ -538,5 +542,7 @@ export const sp = {
|
|||||||
|
|
||||||
integrated: 'Integrado',
|
integrated: 'Integrado',
|
||||||
microphone: 'Micrófono',
|
microphone: 'Micrófono',
|
||||||
camera: 'Cámara'
|
camera: 'Cámara',
|
||||||
|
|
||||||
|
notes: 'Notas',
|
||||||
}
|
}
|
||||||
|
@ -271,7 +271,7 @@ export function useRingContext() {
|
|||||||
audioTrack.current.stop();
|
audioTrack.current.stop();
|
||||||
audioTrack.current = null;
|
audioTrack.current = null;
|
||||||
}
|
}
|
||||||
updateState({ callStatus: null });
|
updateState({ callStatus: null, remoteVideo: false, remoteAudio: false });
|
||||||
}
|
}
|
||||||
ws.current.onopen = async () => {
|
ws.current.onopen = async () => {
|
||||||
ws.current.send(JSON.stringify({ AppToken: token }));
|
ws.current.send(JSON.stringify({ AppToken: token }));
|
||||||
@ -394,7 +394,7 @@ export function useRingContext() {
|
|||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
calling.current = null;
|
calling.current = null;
|
||||||
updateState({ callStatus: null });
|
updateState({ callStatus: null, remoteVideo: false, remoteAudio: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
let index = 0;
|
let index = 0;
|
||||||
|
@ -36,6 +36,11 @@ export function Session() {
|
|||||||
const remote = useRef();
|
const remote = useRef();
|
||||||
const local = useRef();
|
const local = useRef();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log(">> ", state.remoteVideo);
|
||||||
|
}, [state.remoteVideo]);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let incoming = [];
|
let incoming = [];
|
||||||
for (let i = 0; i < state.ringing.length; i++) {
|
for (let i = 0; i < state.ringing.length; i++) {
|
||||||
@ -71,9 +76,6 @@ export function Session() {
|
|||||||
remote.current.load();
|
remote.current.load();
|
||||||
remote.current.play();
|
remote.current.play();
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
console.log("video player not set");
|
|
||||||
}
|
|
||||||
}, [state.remoteStream]);
|
}, [state.remoteStream]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -78,7 +78,7 @@ export function useChannels() {
|
|||||||
// set logo and label
|
// set logo and label
|
||||||
if (memberCount === 0) {
|
if (memberCount === 0) {
|
||||||
item.img = 'solution';
|
item.img = 'solution';
|
||||||
item.label = 'Notes';
|
item.label = state.strings.notes;
|
||||||
}
|
}
|
||||||
else if (memberCount === 1) {
|
else if (memberCount === 1) {
|
||||||
item.logo = logo;
|
item.logo = logo;
|
||||||
|
@ -15,6 +15,7 @@ export function useChannelHeader(contentKey) {
|
|||||||
title: null,
|
title: null,
|
||||||
offsync: false,
|
offsync: false,
|
||||||
display: null,
|
display: null,
|
||||||
|
strings: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
const settings = useContext(SettingsContext);
|
const settings = useContext(SettingsContext);
|
||||||
@ -32,7 +33,8 @@ export function useChannelHeader(contentKey) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
updateState({ display: settings.state.display });
|
const { display, strings } = settings.state;
|
||||||
|
updateState({ display, strings });
|
||||||
}, [settings.state]);
|
}, [settings.state]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -84,7 +86,7 @@ export function useChannelHeader(contentKey) {
|
|||||||
let label;
|
let label;
|
||||||
if (memberCount === 0) {
|
if (memberCount === 0) {
|
||||||
img = 'solution';
|
img = 'solution';
|
||||||
label = 'Notes';
|
label = state.strings.notes;
|
||||||
}
|
}
|
||||||
else if (memberCount === 1) {
|
else if (memberCount === 1) {
|
||||||
label = names.join(',');
|
label = names.join(',');
|
||||||
@ -126,7 +128,7 @@ export function useChannelHeader(contentKey) {
|
|||||||
updateState({ label, img, logo });
|
updateState({ label, img, logo });
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
}, [conversation.state, card.state, contentKey]);
|
}, [conversation.state, card.state, state.strings, contentKey]);
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
resync: () => {
|
resync: () => {
|
||||||
|
@ -165,7 +165,7 @@ export function useDetails() {
|
|||||||
let label;
|
let label;
|
||||||
if (memberCount === 0) {
|
if (memberCount === 0) {
|
||||||
img = 'solution';
|
img = 'solution';
|
||||||
label = 'Notes';
|
label = state.strings.notes;
|
||||||
}
|
}
|
||||||
else if (memberCount === 1) {
|
else if (memberCount === 1) {
|
||||||
label = names.join(',');
|
label = names.join(',');
|
||||||
@ -209,7 +209,7 @@ export function useDetails() {
|
|||||||
editMembers: new Set(members) });
|
editMembers: new Set(members) });
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
}, [conversation.state, card.state, state.contentKey]);
|
}, [conversation.state, card.state, state.strings, state.contentKey]);
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
setEditSubject: () => {
|
setEditSubject: () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user