Fixes for creating teams (#4387)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
1d4f42acd9
Коммит
6d3b3162b0
@@ -80,7 +80,7 @@ export default class ChannelNotificationsModal extends React.Component {
|
||||
}
|
||||
createNotifyLevelSection(serverError) {
|
||||
// Get glabal user setting for notifications
|
||||
const globalNotifyLevel = this.props.currentUser.notify_props.desktop;
|
||||
const globalNotifyLevel = this.props.currentUser.notify_props ? this.props.currentUser.notify_props.desktop : 'all';
|
||||
let globalNotifyLevelName;
|
||||
if (globalNotifyLevel === 'all') {
|
||||
globalNotifyLevelName = (
|
||||
|
||||
@@ -27,11 +27,13 @@ export default class TeamUrl extends React.Component {
|
||||
isLoading: false
|
||||
};
|
||||
}
|
||||
|
||||
submitBack(e) {
|
||||
e.preventDefault();
|
||||
this.props.state.wizard = 'display_name';
|
||||
this.props.updateParent(this.props.state);
|
||||
}
|
||||
|
||||
submitNext(e) {
|
||||
e.preventDefault();
|
||||
|
||||
|
||||
@@ -400,6 +400,7 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
ChannelStore.resetCounts(currentId);
|
||||
}
|
||||
ChannelStore.setUnreadCountsByMembers(action.members);
|
||||
ChannelStore.emitChange();
|
||||
break;
|
||||
case ActionTypes.RECEIVED_MORE_CHANNELS:
|
||||
ChannelStore.storeMoreChannels(action.channels);
|
||||
|
||||
@@ -243,7 +243,7 @@ export function getMoreChannels(force) {
|
||||
}
|
||||
|
||||
export function getChannelStats(channelId = ChannelStore.getCurrentId()) {
|
||||
if (isCallInProgress('getChannelStats' + channelId)) {
|
||||
if (isCallInProgress('getChannelStats' + channelId) || channelId == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user