mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 22:57:59 -04:00
Log out when cancelling subscription
This commit is contained in:
@@ -451,6 +451,7 @@ export async function logout () {
|
||||
|
||||
export async function cancelTrial () {
|
||||
await session.endTrial();
|
||||
await session.logout();
|
||||
await resetLocalData();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,15 +40,15 @@ class PaymentNotificationModal extends Component {
|
||||
<div className="text-center pad">
|
||||
<h1>Hi {session.getFirstName()},</h1>
|
||||
<p style={{maxWidth: '30rem', margin: 'auto'}}>
|
||||
Your Insomnia Plus trial has come to an end. Please subscribe to a plan
|
||||
Your Insomnia Plus trial has come to an end. Please enter your billing info
|
||||
to continue using Plus features like encrypted data synchronization and backup.
|
||||
</p>
|
||||
<br/>
|
||||
<p className="pad-top">
|
||||
<PromptButton onClick={this._handleCancel} className="btn btn--compact faint">
|
||||
End Subscription
|
||||
Cancel Subscription
|
||||
</PromptButton>
|
||||
{" "}
|
||||
|
||||
<Link button={true}
|
||||
href="https://insomnia.rest/app/subscribe/"
|
||||
className="btn btn--compact btn--outlined">
|
||||
|
||||
Reference in New Issue
Block a user