blob: e790f29ce135122fe6052745cafe642acf477a50 [file] [log] [blame]
Dixsie Wolmersbea45d52019-09-27 15:49:01 -05001/**
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);