mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-06-18 15:16:40 +02:00
Add confirmation to log out
This commit is contained in:
parent
3e42864eeb
commit
86aac232b8
1 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue