RN-193 & RN-197 (#625)

* RN-193 Always show the create btn on android

* RN-197 Update channel header on channel creation

* missing android actions from never to always show the btn
This commit is contained in:
enahum 2017-06-14 09:59:54 -04:00 committed by Harrison Healey
parent 7f756a9f81
commit 27c29e09b4
6 changed files with 7 additions and 6 deletions

View file

@ -1,7 +1,7 @@
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {handleSelectChannel} from './channel';
import {handleSelectChannel, setChannelDisplayName} from './channel';
import {createChannel} from 'mattermost-redux/actions/channels';
import {getCurrentTeamId} from 'mattermost-redux/selectors/entities/teams';
import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';
@ -23,6 +23,7 @@ export function handleCreateChannel(displayName, purpose, header, type) {
channel = await createChannel(channel, currentUserId)(dispatch, getState);
if (channel && channel.id) {
dispatch(setChannelDisplayName(displayName));
handleSelectChannel(channel.id)(dispatch, getState);
}
};

View file

@ -39,7 +39,7 @@ class AccountNotifications extends PureComponent {
saveButton = {
id: 'save-notifications',
showAsAction: 'never'
showAsAction: 'always'
};
constructor(props) {

View file

@ -47,7 +47,7 @@ class ChannelAddMembers extends PureComponent {
addButton = {
disabled: true,
id: 'add-members',
showAsAction: 'never'
showAsAction: 'always'
};
constructor(props) {

View file

@ -47,7 +47,7 @@ class ChannelMembers extends PureComponent {
removeButton = {
disabled: true,
id: 'remove-members',
showAsAction: 'never'
showAsAction: 'always'
};
constructor(props) {

View file

@ -50,7 +50,7 @@ class CreateChannel extends PureComponent {
rightButton = {
id: 'create-channel',
disabled: true,
showAsAction: 'never'
showAsAction: 'always'
};
constructor(props) {

View file

@ -46,7 +46,7 @@ class MoreChannels extends PureComponent {
rightButton = {
id: 'create-pub-channel',
showAsAction: 'never'
showAsAction: 'always'
};
constructor(props) {