Lines Matching refs:this
70 terminalClass: this.isFullWindow ? 'full-window' : '',
71 marginClass: this.isFullWindow ? 'margin-left-full-window' : '',
79 if (this.status === Connected) {
81 } else if (this.status === Disconnected) {
87 if (this.status === Connected) {
89 } else if (this.status === Disconnected) {
96 this.$store.dispatch('global/getSystemInfo');
99 this.openTerminal();
102 window.removeEventListener('resize', this.resizeKvmWindow);
103 this.closeTerminal();
107 this.rfb.sendCtrlAltDel();
110 this.rfb.disconnect();
111 this.rfb = null;
114 const token = this.$store.getters['authentication/token'];
115 this.rfb = new RFB(
116 this.$refs.panel,
121 this.rfb.scaleViewport = true;
122 this.rfb.clipViewport = true;
123 const that = this;
125 this.resizeKvmWindow = throttle(() => {
128 window.addEventListener('resize', this.resizeKvmWindow);
130 this.rfb.addEventListener('connect', () => {
136 this.rfb.addEventListener('disconnect', () => {
137 this.isConnected = false;
143 this.$refs.panel.children &&
144 this.$refs.panel.children.length > 0 &&
145 this.$refs.panel.children[0].children.length > 0
147 this.$refs.toolbar.style.width =
148 this.$refs.panel.children[0].children[0].clientWidth - 10 + 'px';
154 if (this.$eventBus.$consoleWindow) {
157 if (!this.$eventBus.$consoleWindow.closed) {
158 this.$eventBus.$consoleWindow.focus();
161 this.openNewWindow();
165 this.openNewWindow();
169 this.$eventBus.$consoleWindow = window.open(