Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Merge d60def5 into 3fa9cd4
Browse files Browse the repository at this point in the history
  • Loading branch information
aaimio committed Nov 18, 2019
2 parents 3fa9cd4 + d60def5 commit 594e893
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/botPage/view/blockly/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,33 @@ export default class _Blockly {
);
}

if (xml.hasAttribute('is_dbot')) {
showDialog({
title : translate('Unsupported strategy'),
text : [translate('Sorry, this strategy can’t be used with Binary Bot. You may only use it with DBot.')],
buttons: [
{
text : translate('Cancel'),
class: 'button-secondary',
click() {
$(this).dialog('close');
$(this).remove();
},
},
{
text : translate('Take me to DBot'),
class: 'button-primary',
click() {
window.location.href = 'https://deriv.app/bot';
},
},
],
})
.then(() => {})
.catch(() => {});
return;
}

blocklyXml.forEach(block => {
const blockType = block.getAttribute('type');

Expand Down

0 comments on commit 594e893

Please sign in to comment.