Skip to content

Commit e76daa5

Browse files
authored
feat: add legacy warning to block factory (#8234)
1 parent 9a0619a commit e76daa5

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

demos/blockfactory/app_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ AppController.prototype.assignBlockFactoryClickHandlers = function() {
507507

508508
document.getElementById('helpButton').addEventListener('click',
509509
function() {
510-
open('https://developers.google.com/blockly/custom-blocks/block-factory',
510+
open('https://developers.google.com/blockly/guides/create-custom-blocks/legacy-blockly-developer-tools',
511511
'BlockFactoryHelp');
512512
});
513513

demos/blockfactory/factory.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ button, .buttonStyle {
127127
float: right;
128128
}
129129

130+
#legacyBanner {
131+
border: #ccc 1px solid;
132+
background-color: #FFCDD2;
133+
margin: 4px;
134+
padding: 4px;
135+
}
136+
130137
#blockFactoryContent {
131138
height: 85%;
132139
width: 100%;

demos/blockfactory/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ <h1><a href="https://developers.google.com/blockly/">Blockly</a> &gt;
5353
<button class="privacyButton" title="Open Google privacy policy"><a class="privacyLink" href="https://policies.google.com/privacy">Privacy</a>
5454
</button>
5555
</h1>
56+
<div id="legacyBanner">
57+
This version of Developer Tools is only compatible with Blockly version 10 and earlier. Try the <a target="_blank" href="https://google.github.io/blockly-samples/examples/developer-tools/index.html">new Block Factory</a> and <a target="_blank" href="https://developers.google.com/blockly/guides/create-custom-blocks/blockly-developer-tools#import_from_legacy_block_factory">learn how to migrate your blocks</a>.
58+
</div>
5659
<div id="tabContainer">
5760
<div id="blockFactory_tab" class="tab tabon">Block Factory</div>
5861
<div id="blocklibraryExporter_tab" class="tab taboff">Block Exporter</div>

0 commit comments

Comments
 (0)