mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(core): import template (#8000)
This commit is contained in:
@@ -17,6 +17,12 @@ export class WorkspaceList extends Entity {
|
||||
.flat()
|
||||
.map(isLoadings => isLoadings.some(isLoading => isLoading));
|
||||
|
||||
workspace$(id: string) {
|
||||
return this.workspaces$.map(workspaces =>
|
||||
workspaces.find(workspace => workspace.id === id)
|
||||
);
|
||||
}
|
||||
|
||||
constructor(private readonly providers: WorkspaceFlavourProvider[]) {
|
||||
super();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user