Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove the option to hide_custom_blocks, make it the default - #26392

#26392
Merged
joshlory merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
hide-custom-blocks-optioncode-dot-org/code-dot-org:hide-custom-blocks-optionCopy head branch name to clipboard
Dec 19, 2018
Merged

Remove the option to hide_custom_blocks, make it the default#26392
joshlory merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
hide-custom-blocks-optioncode-dot-org/code-dot-org:hide-custom-blocks-optionCopy head branch name to clipboard

Conversation

@joshlory

Copy link
Copy Markdown
Contributor

Only hiding the option for now (leaving the current settings on existing levels). A more drastic step would be to nuke the option entirely:

if (!valueOr(level.hideCustomBlocks, true) || options.level.edit_blocks) {
level.toolbox = appendBlocksByCategory(level.toolbox, blocksByCategory);
}

Request from @mikeharv.

@joshlory
joshlory requested a review from Hamms December 17, 2018 23:18
@joshlory
joshlory merged commit 76ded52 into staging Dec 19, 2018
@joshlory
joshlory deleted the hide-custom-blocks-option branch December 19, 2018 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.