fix(subtitles) web components must not be used in generic action files
This commit is contained in:
parent
3fa72c99bc
commit
5502601fb3
|
@ -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));
|
||||
};
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
export * from './actions.any';
|
|
@ -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));
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue