Change the default tool in multi-user
This commit is contained in:
parent
804a773466
commit
a6ce565826
@ -71,13 +71,20 @@ class WhiteboardToolbar extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
const { annotations } = this.props;
|
||||
const { annotations, multiUser } = this.props;
|
||||
|
||||
let annotationSelected = {
|
||||
icon: 'hand',
|
||||
value: 'hand',
|
||||
};
|
||||
|
||||
if (multiUser) {
|
||||
annotationSelected = {
|
||||
icon: 'pen_tool',
|
||||
value: 'pencil',
|
||||
};
|
||||
}
|
||||
|
||||
if (!annotations.some(el => el.value === annotationSelected.value) && annotations.length > 0) {
|
||||
annotationSelected = annotations[annotations.length - 1];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user