mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix hide/show of palette in tour and add MQTT nodes
This commit is contained in:
parent
9fd5213f13
commit
31da3adaa9
@ -93,6 +93,8 @@ export default {
|
|||||||
{
|
{
|
||||||
title: {"en-US":"Link Call node added"},
|
title: {"en-US":"Link Call node added"},
|
||||||
prepare(done) {
|
prepare(done) {
|
||||||
|
this.paletteWasClosed = $("#red-ui-main-container").hasClass("red-ui-palette-closed");
|
||||||
|
RED.actions.invoke("core:toggle-palette",true)
|
||||||
$('[data-palette-type="link call"]')[0].scrollIntoView({block:"center"})
|
$('[data-palette-type="link call"]')[0].scrollIntoView({block:"center"})
|
||||||
setTimeout(done,100);
|
setTimeout(done,100);
|
||||||
},
|
},
|
||||||
@ -100,13 +102,27 @@ export default {
|
|||||||
direction: "right",
|
direction: "right",
|
||||||
description: { "en-US": '<p>The <code>Link Call</code> node lets you call another flow that begins with a <code>Link In</code> node and get the result back when the message reaches a <code>Link Out</code> node.</p>' },
|
description: { "en-US": '<p>The <code>Link Call</code> node lets you call another flow that begins with a <code>Link In</code> node and get the result back when the message reaches a <code>Link Out</code> node.</p>' },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: {"en-US":"MQTT nodes support dynamic connections"},
|
||||||
|
prepare(done) {
|
||||||
|
$('[data-palette-type="mqtt out"]')[0].scrollIntoView({block:"center"})
|
||||||
|
setTimeout(done,100);
|
||||||
|
},
|
||||||
|
element: '[data-palette-type="mqtt out"]',
|
||||||
|
direction: "right",
|
||||||
|
description: { "en-US": '<p>The <code>MQTT</code> nodes now support creating their connections and subscriptions dynamically.</p>' },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: {"en-US":"File nodes renamed"},
|
title: {"en-US":"File nodes renamed"},
|
||||||
prepare(done) {
|
prepare(done) {
|
||||||
$('[data-palette-type="file"]')[0].scrollIntoView({block:"center"})
|
$('[data-palette-type="file"]')[0].scrollIntoView({block:"center"})
|
||||||
setTimeout(done,100);
|
setTimeout(done,100);
|
||||||
},
|
},
|
||||||
|
complete() {
|
||||||
|
if (this.paletteWasClosed) {
|
||||||
|
RED.actions.invoke("core:toggle-palette",false)
|
||||||
|
}
|
||||||
|
},
|
||||||
element: '[data-palette-type="file"]',
|
element: '[data-palette-type="file"]',
|
||||||
direction: "right",
|
direction: "right",
|
||||||
description: { "en-US": '<p>The file nodes have been renamed to make it clearer which node does what.</p>' },
|
description: { "en-US": '<p>The file nodes have been renamed to make it clearer which node does what.</p>' },
|
||||||
|
Loading…
Reference in New Issue
Block a user