fix observability regression, from 5c839998
This commit is contained in:
@@ -9,6 +9,7 @@ class AuthenticationProvider extends Model {
|
|||||||
|
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
isConnected: boolean;
|
isConnected: boolean;
|
||||||
|
|
||||||
@Field
|
@Field
|
||||||
|
|||||||
@@ -62,8 +62,10 @@ export default class Collection extends ParanoidModel {
|
|||||||
@observable
|
@observable
|
||||||
documents?: NavigationNode[];
|
documents?: NavigationNode[];
|
||||||
|
|
||||||
|
@observable
|
||||||
url: string;
|
url: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
urlId: string;
|
urlId: string;
|
||||||
|
|
||||||
constructor(fields: Partial<Collection>, store: CollectionsStore) {
|
constructor(fields: Partial<Collection>, store: CollectionsStore) {
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ class Comment extends Model {
|
|||||||
|
|
||||||
createdById: string;
|
createdById: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
resolvedAt: string;
|
resolvedAt: string;
|
||||||
|
|
||||||
@Relation(() => User)
|
@Relation(() => User)
|
||||||
|
|||||||
@@ -122,15 +122,19 @@ export default class Document extends ParanoidModel {
|
|||||||
@observable
|
@observable
|
||||||
archivedAt: string;
|
archivedAt: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
url: string;
|
url: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
urlId: string;
|
urlId: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
tasks: {
|
tasks: {
|
||||||
completed: number;
|
completed: number;
|
||||||
total: number;
|
total: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@observable
|
||||||
revision: number;
|
revision: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { computed } from "mobx";
|
import { computed, observable } from "mobx";
|
||||||
import { FileOperationFormat, FileOperationType } from "@shared/types";
|
import { FileOperationFormat, FileOperationType } from "@shared/types";
|
||||||
import { bytesToHumanReadable } from "@shared/utils/files";
|
import { bytesToHumanReadable } from "@shared/utils/files";
|
||||||
import User from "./User";
|
import User from "./User";
|
||||||
@@ -7,6 +7,7 @@ import Model from "./base/Model";
|
|||||||
class FileOperation extends Model {
|
class FileOperation extends Model {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
state: string;
|
state: string;
|
||||||
|
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ class Group extends Model {
|
|||||||
@observable
|
@observable
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
memberCount: number;
|
memberCount: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ class Integration<T = unknown> extends Model {
|
|||||||
@observable
|
@observable
|
||||||
events: string[];
|
events: string[];
|
||||||
|
|
||||||
|
@observable
|
||||||
settings: IntegrationSettings<T>;
|
settings: IntegrationSettings<T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
|
import { observable } from "mobx";
|
||||||
import Model from "./base/Model";
|
import Model from "./base/Model";
|
||||||
|
|
||||||
class Policy extends Model {
|
class Policy extends Model {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
abilities: Record<string, boolean>;
|
abilities: Record<string, boolean>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,12 +24,16 @@ class Share extends Model {
|
|||||||
@observable
|
@observable
|
||||||
urlId: string;
|
urlId: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
documentTitle: string;
|
documentTitle: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
documentUrl: string;
|
documentUrl: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
lastAccessedAt: string | null | undefined;
|
lastAccessedAt: string | null | undefined;
|
||||||
|
|
||||||
|
@observable
|
||||||
url: string;
|
url: string;
|
||||||
|
|
||||||
createdBy: User;
|
createdBy: User;
|
||||||
|
|||||||
@@ -58,8 +58,10 @@ class Team extends Model {
|
|||||||
@observable
|
@observable
|
||||||
preferences: TeamPreferences | null;
|
preferences: TeamPreferences | null;
|
||||||
|
|
||||||
|
@observable
|
||||||
domain: string | null | undefined;
|
domain: string | null | undefined;
|
||||||
|
|
||||||
|
@observable
|
||||||
url: string;
|
url: string;
|
||||||
|
|
||||||
@Field
|
@Field
|
||||||
|
|||||||
@@ -44,14 +44,19 @@ class User extends ParanoidModel {
|
|||||||
@observable
|
@observable
|
||||||
notificationSettings: NotificationSettings;
|
notificationSettings: NotificationSettings;
|
||||||
|
|
||||||
|
@observable
|
||||||
email: string;
|
email: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
isAdmin: boolean;
|
isAdmin: boolean;
|
||||||
|
|
||||||
|
@observable
|
||||||
isViewer: boolean;
|
isViewer: boolean;
|
||||||
|
|
||||||
|
@observable
|
||||||
lastActiveAt: string;
|
lastActiveAt: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
isSuspended: boolean;
|
isSuspended: boolean;
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { action } from "mobx";
|
import { action, observable } from "mobx";
|
||||||
import User from "./User";
|
import User from "./User";
|
||||||
import Model from "./base/Model";
|
import Model from "./base/Model";
|
||||||
|
|
||||||
@@ -9,8 +9,10 @@ class View extends Model {
|
|||||||
|
|
||||||
firstViewedAt: string;
|
firstViewedAt: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
lastViewedAt: string;
|
lastViewedAt: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
count: number;
|
count: number;
|
||||||
|
|
||||||
user: User;
|
user: User;
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export default abstract class Model {
|
|||||||
|
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
|
|
||||||
|
@observable
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
|
|
||||||
store: Store<Model>;
|
store: Store<Model>;
|
||||||
|
|||||||
Reference in New Issue
Block a user