Temporary tweak to join mechanism

TODO: move this to the external app (blender-cloud).
This commit is contained in:
2016-11-30 15:57:11 +01:00
parent 48ebdf11b3
commit e72f02711d
2 changed files with 12 additions and 0 deletions

View File

@@ -361,7 +361,13 @@ script.
if (nodeId.substring(0, 2) == 'n_') {
nodeId = nodeId.substr(2);
}
{% if subscription not in ['demo', 'subscriber', 'admin'] and project.url == 'agent-327' %}
var url = '/join-agent';
{% else %}
var url = '/nodes/' + nodeId + '/view';
// var url = '/join-agent';
{% endif %}
loadNodeContent(url, nodeId);
// Determine whether we should push the new state or not.