|
|
@ -25,7 +25,8 @@ import {
|
|
|
|
fetchLimit,
|
|
|
|
fetchLimit,
|
|
|
|
postRefetchSeconds,
|
|
|
|
postRefetchSeconds,
|
|
|
|
} from '../utils';
|
|
|
|
} from '../utils';
|
|
|
|
import { T, i18n } from 'inferno-i18next';
|
|
|
|
import { T } from 'inferno-i18next';
|
|
|
|
|
|
|
|
import { i18n } from '../i18next';
|
|
|
|
|
|
|
|
|
|
|
|
interface State {
|
|
|
|
interface State {
|
|
|
|
community: CommunityI;
|
|
|
|
community: CommunityI;
|
|
|
@ -252,6 +253,7 @@ export class Community extends Component<any, State> {
|
|
|
|
let op: UserOperation = msgOp(msg);
|
|
|
|
let op: UserOperation = msgOp(msg);
|
|
|
|
if (msg.error) {
|
|
|
|
if (msg.error) {
|
|
|
|
alert(i18n.t(msg.error));
|
|
|
|
alert(i18n.t(msg.error));
|
|
|
|
|
|
|
|
this.context.router.history.push('/');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else if (op == UserOperation.GetCommunity) {
|
|
|
|
} else if (op == UserOperation.GetCommunity) {
|
|
|
|
let res: GetCommunityResponse = msg;
|
|
|
|
let res: GetCommunityResponse = msg;
|
|
|
|