Add posibility to have separate media buttons, fixes #309
This commit is contained in:
@@ -18,6 +18,7 @@ const initialState =
|
||||
hiddenControls : false,
|
||||
showNotifications : true,
|
||||
notificationSounds : true,
|
||||
buttonControlBar : window.config.buttonControlBar || false,
|
||||
...window.config.defaultAudio
|
||||
};
|
||||
|
||||
@@ -145,6 +146,13 @@ const settings = (state = initialState, action) =>
|
||||
return { ...state, permanentTopBar };
|
||||
}
|
||||
|
||||
case 'TOGGLE_BUTTON_CONTROL_BAR':
|
||||
{
|
||||
const buttonControlBar = !state.buttonControlBar;
|
||||
|
||||
return { ...state, buttonControlBar };
|
||||
}
|
||||
|
||||
case 'TOGGLE_HIDDEN_CONTROLS':
|
||||
{
|
||||
const hiddenControls = !state.hiddenControls;
|
||||
|
||||
Reference in New Issue
Block a user