mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 03:12:42 +00:00
* feat(info): new dialog design - Add display of a dial in number. - Add a static page to show a full list of dial in numbers. - Add password management. - Invite modal will be changed soon to remove password and dial-in. * squash: add classes for torture tests * squash: class for local lock for torture tests * squash: more classes for torture tests * squash: more classes, work around linter * squash: remove unused string? * squash: work around linter and avoid react warnings * squash: pixel push, add bold * squash: font size bump * squash: NumbersTable -> NumbersList * squash: document response from fetching numbers * squash: showEdit -> editEnabled, pixel push padding for alignment * squash: pin -> conferenceID * squash: prepare to receive defaultCountry from api
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
import { ReducerRegistry } from '../base/redux';
|
|
|
|
import {
|
|
SET_INFO_DIALOG_VISIBILITY,
|
|
UPDATE_DIAL_IN_NUMBERS_FAILED,
|
|
UPDATE_DIAL_IN_NUMBERS_SUCCESS
|
|
} from './actionTypes';
|
|
|
|
const DEFAULT_STATE = {
|
|
numbersEnabled: true
|
|
};
|
|
|
|
ReducerRegistry.register('features/invite', (state = DEFAULT_STATE, action) => {
|
|
switch (action.type) {
|
|
case SET_INFO_DIALOG_VISIBILITY:
|
|
return {
|
|
...state,
|
|
infoDialogVisible: action.visible,
|
|
infoDialogWillAutoClose: action.autoClose
|
|
};
|
|
|
|
case UPDATE_DIAL_IN_NUMBERS_FAILED:
|
|
return {
|
|
...state,
|
|
error: action.error
|
|
};
|
|
|
|
case UPDATE_DIAL_IN_NUMBERS_SUCCESS: {
|
|
const {
|
|
defaultCountry,
|
|
numbers,
|
|
numbersEnabled
|
|
} = action.dialInNumbers;
|
|
|
|
return {
|
|
...state,
|
|
conferenceID: action.conferenceID,
|
|
defaultCountry,
|
|
numbers,
|
|
numbersEnabled
|
|
};
|
|
}
|
|
}
|
|
|
|
return state;
|
|
});
|