topic member management complete
This commit is contained in:
+13
-5
@@ -1514,7 +1514,7 @@
|
|||||||
auth: null,
|
auth: null,
|
||||||
anon: null,
|
anon: null,
|
||||||
contactList: [],
|
contactList: [],
|
||||||
showMemberPanel: false
|
showMemberPanel: this.props.showMemberPanel
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2162,6 +2162,7 @@
|
|||||||
subscriptions: {},
|
subscriptions: {},
|
||||||
displayMobile: (window.innerWidth <= MEDIA_BREAKPOINT),
|
displayMobile: (window.innerWidth <= MEDIA_BREAKPOINT),
|
||||||
showInfoPanel: false,
|
showInfoPanel: false,
|
||||||
|
infoPanelShowMembers: false,
|
||||||
mobilePanel: 'sidepanel',
|
mobilePanel: 'sidepanel',
|
||||||
contextMenuVisible: false,
|
contextMenuVisible: false,
|
||||||
contextMenuBounds: null,
|
contextMenuBounds: null,
|
||||||
@@ -2261,6 +2262,7 @@
|
|||||||
loginDisabled: false,
|
loginDisabled: false,
|
||||||
subscriptions: {},
|
subscriptions: {},
|
||||||
showInfoPanel: false,
|
showInfoPanel: false,
|
||||||
|
infoPanelShowMembers: false,
|
||||||
mobilePanel: 'sidepanel',
|
mobilePanel: 'sidepanel',
|
||||||
contextMenuVisible: false,
|
contextMenuVisible: false,
|
||||||
contextMenuBounds: null,
|
contextMenuBounds: null,
|
||||||
@@ -2426,7 +2428,8 @@
|
|||||||
topicSelected: topic.name,
|
topicSelected: topic.name,
|
||||||
sidePanelSelected: 'contacts',
|
sidePanelSelected: 'contacts',
|
||||||
mobilePanel: 'topic-view',
|
mobilePanel: 'topic-view',
|
||||||
showInfoPanel: false
|
showInfoPanel: true,
|
||||||
|
infoPanelShowMembers: true
|
||||||
});
|
});
|
||||||
}).catch(function(err) {
|
}).catch(function(err) {
|
||||||
instance.setState({errorText: err.message});
|
instance.setState({errorText: err.message});
|
||||||
@@ -2462,7 +2465,11 @@
|
|||||||
var instance = this;
|
var instance = this;
|
||||||
topic.leave(true).then(function(ctrl) {
|
topic.leave(true).then(function(ctrl) {
|
||||||
// Hide MessageView and InfoView panels.
|
// Hide MessageView and InfoView panels.
|
||||||
instance.setState({topicSelected: '', showInfoPanel: false});
|
instance.setState({
|
||||||
|
topicSelected: '',
|
||||||
|
showInfoPanel: false,
|
||||||
|
infoPanelShowMembers: false
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2546,10 +2553,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleShowInfoView: function() {
|
handleShowInfoView: function() {
|
||||||
this.setState({showInfoPanel: true});
|
this.setState({showInfoPanel: true, infoPanelShowMembers: false});
|
||||||
},
|
},
|
||||||
handleHideInfoView: function() {
|
handleHideInfoView: function() {
|
||||||
this.setState({showInfoPanel: false});
|
this.setState({showInfoPanel: false, infoPanelShowMembers: false});
|
||||||
},
|
},
|
||||||
handleMemberUpdateRequest: function(topicName, added, removed) {
|
handleMemberUpdateRequest: function(topicName, added, removed) {
|
||||||
if (!topicName) {
|
if (!topicName) {
|
||||||
@@ -2642,6 +2649,7 @@
|
|||||||
topic={this.state.topicSelected}
|
topic={this.state.topicSelected}
|
||||||
foundContacts={this.state.foundContacts}
|
foundContacts={this.state.foundContacts}
|
||||||
myUserId={this.state.myUserId}
|
myUserId={this.state.myUserId}
|
||||||
|
showMemberPanel={this.state.infoPanelShowMembers}
|
||||||
onSubmit={this.handleTopicUpdateRequest}
|
onSubmit={this.handleTopicUpdateRequest}
|
||||||
onCancel={this.handleHideInfoView}
|
onCancel={this.handleHideInfoView}
|
||||||
onChangePermissions={this.handleChangePermissions}
|
onChangePermissions={this.handleChangePermissions}
|
||||||
|
|||||||
Reference in New Issue
Block a user