1/**
2 * Controller for kvm window
3 *
4 * @module app/serverControl
5 * @exports kvmWindowController
6 * @name kvmWindowController
7 */
8
9window.angular && (function(angular) {
10  'use strict';
11  angular.module('app.serverControl').controller('kvmWindowController', [
12    '$scope', '$window', 'dataService',
13    function($scope, $window, dataService) {
14      $scope.dataService = dataService;
15      dataService.showNavigation = false;
16      dataService.bodyStyle = {background: 'white'};
17
18      $scope.close = function() {
19        $window.close();
20        if (rfb) {
21          rfb.disconnect();
22        }
23      };
24    }
25  ]);
26})(angular);