settings.js: update viewer immediately after enabling/disabling

This commit is contained in:
codl 2017-08-31 20:48:00 +02:00
parent cd13094bad
commit c2013197f9
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ import Banner from '../components/Banner.html';
banner.on('toggle', enabled => {
send_settings({policy_enabled: enabled});
send_settings({policy_enabled: enabled}).then(fetch_viewer).then(update_viewer);
// TODO show error or spinner if it takes over a second
})