Skip to content

Commit c950147

Browse files
authored
chore: In block-tests plugin, replace setEnabled with setDisabledReason (#2635)
1 parent affcd6e commit c950147

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/block-test/src/fields/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export function onInit(workspace) {
234234
.getWorkspace()
235235
.getAllBlocks(false);
236236
for (let i = 0, block; (block = blocks[i]); i++) {
237-
block.setEnabled(!block.isEnabled());
237+
block.setDisabledReason(block.isEnabled(), 'Toggle block enabled');
238238
}
239239
};
240240
const toggleShadow = function (button) {

0 commit comments

Comments
 (0)