fix(subtitles) web components must not be used in generic action files

This commit is contained in:
Saúl Ibarra Corretgé 2022-09-13 14:54:48 +02:00 committed by Saúl Ibarra Corretgé
parent 3fa72c99bc
commit 5502601fb3
3 changed files with 19 additions and 16 deletions

View File

@ -1,7 +1,5 @@
// @flow
import { toggleDialog } from '../base/dialog';
import {
ENDPOINT_MESSAGE_RECEIVED,
REMOVE_TRANSCRIPT_MESSAGE,
@ -10,7 +8,6 @@ import {
UPDATE_TRANSCRIPT_MESSAGE,
UPDATE_TRANSLATION_LANGUAGE
} from './actionTypes';
import LanguageSelectorDialogWeb from './components/LanguageSelectorDialog.web';
/**
* Signals that a participant sent an endpoint message on the data channel.
@ -111,16 +108,3 @@ export function updateTranslationLanguage(value) {
value
};
}
/**
* Signals that the local user has toggled the LanguageSelector button.
*
* @returns {{
* type: UPDATE_TRANSLATION_LANGUAGE
* }}
*/
export function toggleLangugeSelectorDialog() {
return function(dispatch: (Object) => Object) {
dispatch(toggleDialog(LanguageSelectorDialogWeb));
};
}

View File

@ -0,0 +1 @@
export * from './actions.any';

View File

@ -0,0 +1,18 @@
import { toggleDialog } from '../base/dialog/actions';
import LanguageSelectorDialogWeb from './components/LanguageSelectorDialog.web';
export * from './actions.any';
/**
* Signals that the local user has toggled the LanguageSelector button.
*
* @returns {{
* type: UPDATE_TRANSLATION_LANGUAGE
* }}
*/
export function toggleLangugeSelectorDialog() {
return function(dispatch: (Object) => Object) {
dispatch(toggleDialog(LanguageSelectorDialogWeb));
};
}