mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
refresh pricing page at login/logout
This commit is contained in:
1 parent
6b4f8d0997
commit
79b85da043
4 files changed
+9
No files matched your search
@@ -324,6 +324,7 @@ class App extends React.Component<Props, State> {
|
||||
})
|
||||
.then((_raw_response) => {
|
||||
this.querySession();
|
||||
this.querySessionSubscriptions();
|
||||
})
|
||||
.catch((e) => {
|
||||
/* Ignore. */
|
||||
@@ -659,6 +660,7 @@ class App extends React.Component<Props, State> {
|
||||
sessionWrapper={this.state.sessionWrapper}
|
||||
querySessionAction={this.querySession}
|
||||
sessionSubscriptionsWrapper={this.state.sessionSubscriptionsWrapper}
|
||||
querySessionSubscriptionsAction={this.querySessionSubscriptions}
|
||||
isShowingVocodesNotice={this.state.isShowingVocodesNotice}
|
||||
clearVocodesNotice={this.clearVocodesNotice}
|
||||
isShowingLangaugeNotice={this.state.isShowingLanguageNotice}
|
||||
|
||||
@@ -43,6 +43,7 @@ interface Props {
|
||||
sessionWrapper: SessionWrapper;
|
||||
logoutHandler: () => void;
|
||||
querySessionCallback: () => void;
|
||||
querySessionSubscriptionsCallback: () => void;
|
||||
}
|
||||
|
||||
function NewTopNavFc(props: Props) {
|
||||
@@ -139,6 +140,7 @@ function NewTopNavFc(props: Props) {
|
||||
const logoutHandler = async () => {
|
||||
await Logout();
|
||||
props.querySessionCallback();
|
||||
props.querySessionSubscriptionsCallback();
|
||||
history.push("/");
|
||||
};
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ interface Props {
|
||||
querySessionAction: () => void;
|
||||
|
||||
sessionSubscriptionsWrapper: SessionSubscriptionsWrapper;
|
||||
querySessionSubscriptionsAction: () => void;
|
||||
|
||||
isShowingVocodesNotice: boolean;
|
||||
clearVocodesNotice: () => void;
|
||||
@@ -143,6 +144,7 @@ class NewVocodesContainer extends React.Component<Props, State> {
|
||||
logoutHandler={this.logout}
|
||||
sessionWrapper={this.props.sessionWrapper}
|
||||
querySessionCallback={this.props.querySessionAction}
|
||||
querySessionSubscriptionsCallback={this.props.querySessionSubscriptionsAction}
|
||||
/>
|
||||
|
||||
<ScrollToTop />
|
||||
@@ -160,6 +162,7 @@ class NewVocodesContainer extends React.Component<Props, State> {
|
||||
<LoginPage
|
||||
sessionWrapper={this.props.sessionWrapper}
|
||||
querySessionAction={this.props.querySessionAction}
|
||||
querySessionSubscriptionsAction={this.props.querySessionSubscriptionsAction}
|
||||
/>
|
||||
</Route>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import { container, panel } from "../../../data/animation";
|
||||
interface Props {
|
||||
sessionWrapper: SessionWrapper;
|
||||
querySessionAction: () => void;
|
||||
querySessionSubscriptionsAction: () => void;
|
||||
}
|
||||
|
||||
function LoginPage(props: Props) {
|
||||
@@ -63,6 +64,7 @@ function LoginPage(props: Props) {
|
||||
} else if (CreateSessionIsSuccess(response)) {
|
||||
console.log("querying new session");
|
||||
props.querySessionAction();
|
||||
props.querySessionSubscriptionsAction();
|
||||
history.push("/");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user