Move review actions into the platform, emit events on change
Still not seeing updates in the sidebar, however.
This commit is contained in:
parent
954a4330ee
commit
ee61b6d24b
6 changed files with 181 additions and 133 deletions
|
|
@ -90,7 +90,7 @@
|
|||
class="position-absolute translate-middle badge rounded-pill bg-primary"
|
||||
>
|
||||
<span
|
||||
x-text="notification_counts.reviwe > 99 ? '99+' : notification_counts.review"
|
||||
x-text="notification_counts.review > 99 ? '99+' : notification_counts.review"
|
||||
></span>
|
||||
<span class="visually-hidden">unread notifications</span>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<script>
|
||||
const USER = {{ .User.AsJSON|json }};
|
||||
SSEManager.subscribe("*", function (e) {
|
||||
if (e.type == "created" && e.resource.startsWith("rmo:")) {
|
||||
if (e.type != "heartbeat") {
|
||||
updateUserState();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue