Add editor button to PWD

This commit is contained in:
marcos
2018-01-06 15:08:34 -03:00
parent 386bd87385
commit 5efbcf0fd8
2 changed files with 36 additions and 24 deletions

View File

@@ -440,7 +440,15 @@
}).finally(function() {
updateDeleteInstanceBtnState(false);
});
}
};
$scope.openEditor = function(instance) {
console.log(instance);
var w = window.screen.availWidth * 45 / 100;
var h = window.screen.availHeight * 45 / 100;
$window.open('/sessions/' + instance.session_id + '/instances/'+instance.name+'/editor', 'editor',
'width='+w+',height='+h+',resizable,scrollbars=yes,status=1');
};
$scope.loadPlaygroundConf();
$scope.getSession($scope.sessionId);