fixing more redirect places
Этот коммит содержится в:
@@ -4,6 +4,7 @@
|
||||
const Client = require('../utils/client.jsx');
|
||||
const AsyncClient = require('../utils/async_client.jsx');
|
||||
const ChannelStore = require('../stores/channel_store.jsx');
|
||||
var TeamStore = require('../stores/team_store.jsx');
|
||||
|
||||
export default class DeleteChannelModal extends React.Component {
|
||||
constructor(props) {
|
||||
@@ -24,7 +25,7 @@ export default class DeleteChannelModal extends React.Component {
|
||||
Client.deleteChannel(this.state.channelId,
|
||||
function handleDeleteSuccess() {
|
||||
AsyncClient.getChannels(true);
|
||||
window.location.href = '/';
|
||||
window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/town-square';
|
||||
},
|
||||
function handleDeleteError(err) {
|
||||
AsyncClient.dispatchError(err, 'handleDelete');
|
||||
|
||||
@@ -262,7 +262,7 @@ export default class Navbar extends React.Component {
|
||||
return (
|
||||
<div className='navbar-brand'>
|
||||
<a
|
||||
href='/'
|
||||
href={TeamStore.getCurrentTeamUrl() + '/channels/town-square'}
|
||||
className='heading'
|
||||
>
|
||||
{channelTitle}
|
||||
|
||||
@@ -42,7 +42,7 @@ export default class SSOSignUpPage extends React.Component {
|
||||
if (data.follow_link) {
|
||||
window.location.href = data.follow_link;
|
||||
} else {
|
||||
window.location.href = '/';
|
||||
window.location.href = '/' + team.name + '/channels/town-square';
|
||||
}
|
||||
},
|
||||
function fail(err) {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var ChannelStore = require('../stores/channel_store.jsx');
|
||||
var UserStore = require('../stores/user_store.jsx');
|
||||
var TeamStore = require('../stores/team_store.jsx');
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
var AsyncClient = require('./async_client.jsx');
|
||||
@@ -113,7 +114,7 @@ export function notifyMe(title, body, channel) {
|
||||
if (channel) {
|
||||
switchChannel(channel);
|
||||
} else {
|
||||
window.location.href = '/';
|
||||
window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/town-square';
|
||||
}
|
||||
};
|
||||
setTimeout(function closeNotificationOnTimeout() {
|
||||
|
||||
Ссылка в новой задаче
Block a user