Skip to content

Commit

Permalink
ui: Dispatch action to display alert message after email subscription
Browse files Browse the repository at this point in the history
Alert notification has to be showed after user subscribed to
release notes.

Release note: None
  • Loading branch information
koorosh committed Feb 28, 2020
1 parent 1992349 commit 22107e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ui/src/redux/customAnalytics/customAnalyticsSagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import Analytics from "analytics-node";

import { PayloadAction } from "src/interfaces/action";
import { COCKROACHLABS_ADDR } from "src/util/cockroachlabsAPI";
import { emailSubscriptionAlertLocalSetting } from "src/redux/alerts";

import {
completeEmailSubscriptionSignUp,
EMAIL_SUBSCRIPTION_SIGN_UP,
Expand Down Expand Up @@ -49,6 +51,7 @@ export function* signUpEmailSubscription(action: PayloadAction<EmailSubscription
},
});
yield put(completeEmailSubscriptionSignUp());
yield put(emailSubscriptionAlertLocalSetting.set(true));
}

export function* customAnalyticsSaga() {
Expand Down

0 comments on commit 22107e9

Please sign in to comment.