feat: Badge documents in sidebar that have been newly shared with you

This commit is contained in:
Tom Moor
2024-02-02 23:09:18 -05:00
parent 1bf0788de6
commit abaa56c8f1
7 changed files with 63 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
import { TFunction } from "i18next";
import { action, observable } from "mobx";
import { action, computed, observable } from "mobx";
import { NotificationEventType } from "@shared/types";
import {
collectionPath,
@@ -154,6 +154,7 @@ class Notification extends Model {
*
* @returns The router path.
*/
@computed
get path() {
switch (this.event) {
case NotificationEventType.PublishDocument: