Added toast messages

This commit is contained in:
RemixDev 2020-04-11 12:51:22 +02:00
parent 07add62470
commit 8785497a67

View file

@ -38,10 +38,7 @@ def landing():
@socketio.on('init')
def handle_init():
can_start = app.initialize()
if can_start:
response = {'status': 'ok'}
else:
response = {'status': 'error'}
emit('toast', {'msg': "App initialized!", 'icon': 'done'})
@socketio.on('mainSearch')
def mainSearch(data):