feat: support flags in workspace

This commit is contained in:
himself65
2023-01-12 00:53:53 +08:00
parent cb7d16fe1f
commit 1d3dd8aa77
4 changed files with 61 additions and 34 deletions
+6 -1
View File
@@ -102,7 +102,12 @@ export class DataCenter {
const providerId = await this._getProvider(id, params.providerId);
// init workspace & register block schema
const workspace = new Workspace({ room: id }).register(BlockSchema);
const workspace = new Workspace({
room: id,
defaultFlags: {
enable_drag_handle: false,
},
}).register(BlockSchema);
const Provider = this._providers.get(providerId);
assert(Provider);