trigger ativity after cancel

This commit is contained in:
j 2014-05-20 19:03:58 +02:00
parent 8b77c634f3
commit c0cab079bc

View file

@ -14,6 +14,7 @@ import query
import models
import settings
import state
from websocket import trigger_event
import meta
@ -251,5 +252,10 @@ actions.register(_import, 'import', cache=False)
def cancelImport(data):
state.activity['cancel'] = True
trigger_event('activity', {
'activity': 'import',
'progress': [0, 0],
'status': {'code': 200, 'text': 'canceled'}
})
return {}
actions.register(cancelImport, cache=False)