mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Merge pull request #5337 from mabashian/5332-expand-workflow
Resize the workflow chart when expanded out to full screen
This commit is contained in:
commit
b65a10fff2
@ -886,6 +886,14 @@ export default [ '$state','moment', '$timeout', '$window',
|
||||
if(scope.mode === 'details') {
|
||||
angular.element($window).on('resize', onResize);
|
||||
scope.$on('$destroy', cleanUpResize);
|
||||
|
||||
scope.$on('workflowDetailsResized', function(){
|
||||
$('.WorkflowMaker-chart').hide();
|
||||
$timeout(function(){
|
||||
onResize();
|
||||
$('.WorkflowMaker-chart').show();
|
||||
});
|
||||
});
|
||||
}
|
||||
else {
|
||||
scope.$on('workflowMakerModalResized', function(){
|
||||
|
||||
@ -130,6 +130,9 @@ export default ['workflowData',
|
||||
}
|
||||
|
||||
$scope.toggleStdoutFullscreen = function() {
|
||||
|
||||
$scope.$broadcast('workflowDetailsResized');
|
||||
|
||||
$scope.stdoutFullScreen = !$scope.stdoutFullScreen;
|
||||
|
||||
if ($scope.stdoutFullScreen === true) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user