1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-06-18 07:06:39 +02:00

Add confirmation to log out

This commit is contained in:
Robbie Antenesse 2018-06-24 22:16:10 -06:00
parent 3e42864eeb
commit 86aac232b8

View file

@ -3,6 +3,7 @@ import { Component } from 'inferno';
import PropTypes from 'prop-types';
import marked from 'marked';
import store from 'store';
import swal from 'sweetalert2';
import { Modal } from '../../structure/Modal';
import { LoginForm } from './LoginForm';
@ -45,6 +46,14 @@ export class AccountManager extends Component {
isLoggedIn: false,
userData: Object.assign({}, DEFAULT_USER_DATA),
userDictionaries: [],
}, () => {
swal({
title: 'Logged Out',
text: 'You have been logged out. Your work will not be synced to your account until you log in again.',
type: 'success',
confirmButtonClass: 'button',
buttonsStyling: false,
});
});
}