roschaefer 8e129c6001 fix: update counter when notification is read
@mattwr18 vue-apollo rocks! Taking the time to study the docs is a
rewarding investment.

My first idea was to cache the `unreadNotificationsCount` with Vuex.
But the docs of apollo even suggest to use apollo's local state as a
complete replacement of Vuex:
https://vue-apollo.netlify.com/guide/local-state.html

Then I further investigated why the updated `NOTIFIED` objects won't
update the notification counter. Turns out: They don't have an ID and
the computed property didn't fire when the notifications array would
change. I fixed both in this commit and yes, it works as expected.

No additional code required 💪
2019-11-11 08:52:04 +01:00
..
2019-05-29 09:47:24 -03:00
2019-10-08 22:42:41 +02:00
2019-11-11 08:52:04 +01:00
2019-10-11 00:54:19 +02:00
2019-08-15 21:29:37 +01:00
2019-11-03 12:34:56 +01:00
2019-08-21 13:17:32 +02:00
2019-10-24 14:27:53 +02:00
2019-11-11 08:50:35 +01:00
2019-07-10 13:58:11 +02:00
2019-11-02 17:02:19 +01:00
2019-05-29 09:47:24 -03:00
2019-09-25 10:32:35 +03:00
2019-08-02 16:10:19 +02:00