Add extension status button XML

This commit is contained in:
Eric Rosenbaum 2018-06-13 15:52:51 -04:00
parent bd80e4262d
commit 7d0c45546c

View file

@ -546,6 +546,16 @@ class Runtime extends EventEmitter {
categoryInfo.menus.push(convertedMenu); categoryInfo.menus.push(convertedMenu);
} }
} }
// Add extension status button
if (extensionInfo.showStatusButton) {
categoryInfo.blocks.push({
info: {},
json: null,
xml: `<button type="status" extensionId="${categoryInfo.id}"></button>`
});
}
for (const blockInfo of extensionInfo.blocks) { for (const blockInfo of extensionInfo.blocks) {
if (blockInfo === '---') { if (blockInfo === '---') {
categoryInfo.blocks.push(ConvertedSeparator); categoryInfo.blocks.push(ConvertedSeparator);