prevent user item displaying as locked for shared notes lock
This commit is contained in:
parent
5f4676ec63
commit
c28b0108ea
@ -286,8 +286,7 @@ const isMeetingLocked = (id) => {
|
||||
if (lockSettings.disableCam
|
||||
|| lockSettings.disableMic
|
||||
|| lockSettings.disablePrivateChat
|
||||
|| lockSettings.disablePublicChat
|
||||
|| lockSettings.disableNote) {
|
||||
|| lockSettings.disablePublicChat) {
|
||||
isLocked = true;
|
||||
}
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ class UserNotes extends Component {
|
||||
}
|
||||
|
||||
renderNotes() {
|
||||
const { intl, disableNotes } = this.props;
|
||||
const { intl, disableNote } = this.props;
|
||||
const { unread } = this.state;
|
||||
|
||||
let notification = null;
|
||||
@ -86,7 +86,7 @@ class UserNotes extends Component {
|
||||
<div>
|
||||
{intl.formatMessage(intlMessages.sharedNotes)}
|
||||
</div>
|
||||
{disableNotes
|
||||
{disableNote
|
||||
? (
|
||||
<div className={styles.noteLock}>
|
||||
<Icon iconName="lock" />
|
||||
|
@ -18,10 +18,11 @@ export default withTracker(() => {
|
||||
role: 1,
|
||||
},
|
||||
}).role === ROLE_VIEWER;
|
||||
const shouldDisableNote = (Meeting.lockSettingsProps.disableNote) && isViewer;
|
||||
|
||||
return {
|
||||
isPanelOpened: NoteService.isPanelOpened(),
|
||||
revs: NoteService.getRevs(),
|
||||
disableNotes: Meeting.lockSettingsProps.disableNote && isViewer,
|
||||
disableNote: shouldDisableNote,
|
||||
};
|
||||
})(UserNotesContainer);
|
||||
|
Loading…
Reference in New Issue
Block a user