git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 1dbd43a0028f966bbda4aefac6ac37088dd99da9

simplify down badge counter

Matt McKegg authored on 8/8/2017, 12:32:27 AM
GitHub committed on 8/8/2017, 12:32:27 AM
Parent: f3f7d76efbd67bb3ecc2b0899e453b39bb95f599

Files changed

main-window.jschanged
main-window.jsView
@@ -58,13 +58,9 @@
5858 var views = api.app.views(api.page.html.render, [
5959 '/public', '/private', id, '/mentions'
6060 ])
6161
62- var pendingCount = computed([
63- views.get('/mentions').pendingUpdates
64- ], (...counts) => {
65- return counts.reduce((a, b) => a + b)
66- })
62 + var pendingCount = views.get('/mentions').pendingUpdates
6763
6864 watch(pendingCount, count => {
6965 electron.remote.app.setBadgeCount(count)
7066 })

Built with git-ssb-web