blob: e790f29ce135122fe6052745cafe642acf477a50 [file] [log] [blame]
/**
* Controller for kvm window
*
* @module app/serverControl
* @exports kvmWindowController
* @name kvmWindowController
*/
window.angular && (function(angular) {
'use strict';
angular.module('app.serverControl').controller('kvmWindowController', [
'$scope', '$window', 'dataService',
function($scope, $window, dataService) {
$scope.dataService = dataService;
dataService.showNavigation = false;
dataService.bodyStyle = {background: 'white'};
$scope.close = function() {
$window.close();
if (rfb) {
rfb.disconnect();
}
};
}
]);
})(angular);