Skip to content

Commit 61a0f83

Browse files
committed
Open the proper integration settings on integrations disabled error.
1 parent bbb179b commit 61a0f83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/views/dialogs/IntegrationsDisabledDialog.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import dis from "../../../dispatcher/dispatcher";
1313
import { Action } from "../../../dispatcher/actions";
1414
import BaseDialog from "./BaseDialog";
1515
import DialogButtons from "../elements/DialogButtons";
16+
import { UserTab } from "./UserTab";
1617

1718
interface IProps {
1819
onFinished(): void;
@@ -25,7 +26,10 @@ export default class IntegrationsDisabledDialog extends React.Component<IProps>
2526

2627
private onOpenSettingsClick = (): void => {
2728
this.props.onFinished();
28-
dis.fire(Action.ViewUserSettings);
29+
dis.dispatch({
30+
action: Action.ViewUserSettings,
31+
initialTabId: UserTab.Security,
32+
});
2933
};
3034

3135
public render(): React.ReactNode {

0 commit comments

Comments
 (0)