mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Added support for disabled blocks, throw warning at runtime
This commit is contained in:
+2
-1
@@ -53,7 +53,8 @@ export class Serializer {
|
||||
description: blockConfig.toolbar.description,
|
||||
category: blockConfig.toolbar.category,
|
||||
color: blockConfig.toolbar.bgColor
|
||||
}
|
||||
},
|
||||
enabled: block.enabled
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,4 +30,5 @@ export interface SerializedBlock {
|
||||
icon?: string
|
||||
color?: string
|
||||
}
|
||||
enabled: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user