mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Displaying toast when map import completes/fails.
This commit is contained in:
parent
8ba5b63221
commit
67eebbd084
2 changed files with 9 additions and 1 deletions
|
|
@ -44,6 +44,14 @@ function handleEvents(events) {
|
|||
eventToast('Downloads Disabled', message, 'info');
|
||||
}
|
||||
|
||||
if (event === 'map_import_complete') {
|
||||
eventToast('Map import completed', message, 'info');
|
||||
}
|
||||
|
||||
if (event === 'map_import_failed') {
|
||||
eventToast('Map import failed', message, 'error');
|
||||
}
|
||||
|
||||
if (event === 'user_notify_message') {
|
||||
console.log(message, url);
|
||||
eventToast(
|
||||
|
|
|
|||
|
|
@ -1304,7 +1304,7 @@ def background_task(coro) -> Task:
|
|||
try:
|
||||
await coro
|
||||
except Exception as e:
|
||||
logger.error('Background task had error', exc_info=e)
|
||||
logger.error('Background task had error:', exc_info=e)
|
||||
|
||||
task = asyncio.create_task(error_logger())
|
||||
BACKGROUND_TASKS.add(task)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue