Make notification position configurable.
parent
05d7cb571c
commit
ba6c57b283
|
|
@ -61,27 +61,29 @@ var config =
|
||||||
* but use it with caution
|
* but use it with caution
|
||||||
* full mesh audio strongly decrease room capacity!
|
* full mesh audio strongly decrease room capacity!
|
||||||
*/
|
*/
|
||||||
autoMuteThreshold : 4,
|
autoMuteThreshold : 4,
|
||||||
background : 'images/background.jpg',
|
background : 'images/background.jpg',
|
||||||
defaultLayout : 'democratic', // democratic, filmstrip
|
defaultLayout : 'democratic', // democratic, filmstrip
|
||||||
// If true, will show media control buttons in separate
|
// If true, will show media control buttons in separate
|
||||||
// control bar, not in the ME container.
|
// control bar, not in the ME container.
|
||||||
buttonControlBar : false,
|
buttonControlBar : false,
|
||||||
// If false, will push videos away to make room for side
|
// If false, will push videos away to make room for side
|
||||||
// drawer. If true, will overlay side drawer over videos
|
// drawer. If true, will overlay side drawer over videos
|
||||||
drawerOverlayed : true,
|
drawerOverlayed : true,
|
||||||
|
// Position of notifications
|
||||||
|
notificationPosition : 'right',
|
||||||
// Timeout for autohiding topbar and button control bar
|
// Timeout for autohiding topbar and button control bar
|
||||||
hideTimeout : 3000,
|
hideTimeout : 3000,
|
||||||
lastN : 4,
|
lastN : 4,
|
||||||
mobileLastN : 1,
|
mobileLastN : 1,
|
||||||
// Highest number of speakers user can select
|
// Highest number of speakers user can select
|
||||||
maxLastN : 5,
|
maxLastN : 5,
|
||||||
// If truthy, users can NOT change number of speakers visible
|
// If truthy, users can NOT change number of speakers visible
|
||||||
lockLastN : false,
|
lockLastN : false,
|
||||||
// Add file and uncomment for adding logo to appbar
|
// Add file and uncomment for adding logo to appbar
|
||||||
// logo : 'images/logo.svg',
|
// logo : 'images/logo.svg',
|
||||||
title : 'Multiparty meeting',
|
title : 'Multiparty meeting',
|
||||||
theme :
|
theme :
|
||||||
{
|
{
|
||||||
palette :
|
palette :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@ import PropTypes from 'prop-types';
|
||||||
import { withSnackbar } from 'notistack';
|
import { withSnackbar } from 'notistack';
|
||||||
import * as notificationActions from '../../actions/notificationActions';
|
import * as notificationActions from '../../actions/notificationActions';
|
||||||
|
|
||||||
|
const notificationPosition = window.config.notificationPosition || 'right';
|
||||||
|
|
||||||
class Notifications extends Component
|
class Notifications extends Component
|
||||||
{
|
{
|
||||||
displayed = [];
|
displayed = [];
|
||||||
|
|
@ -45,7 +47,7 @@ class Notifications extends Component
|
||||||
autoHideDuration : notification.timeout,
|
autoHideDuration : notification.timeout,
|
||||||
anchorOrigin : {
|
anchorOrigin : {
|
||||||
vertical : 'bottom',
|
vertical : 'bottom',
|
||||||
horizontal : 'left'
|
horizontal : notificationPosition
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue