edit naming convention.

This commit is contained in:
Miroslav Šedivý 2020-11-10 20:17:46 +01:00
parent 7dc02267eb
commit 1b9b37bcc5
2 changed files with 9 additions and 9 deletions

View File

@ -154,8 +154,8 @@
</tr> </tr>
<tr class="ok"> <tr class="ok">
<td> <td>
<button v-if="!neko.state.member.is_controlling" @click="neko.controlRequest()">request control</button> <button v-if="!neko.state.member.is_controlling" @click="neko.requestControl()">request control</button>
<button v-else @click="neko.controlRelease()">release control</button> <button v-else @click="neko.releaseControl()">release control</button>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -186,8 +186,8 @@
<button v-if="loaded && neko.connected" @click="disconnect()">Disonnect</button> <button v-if="loaded && neko.connected" @click="disconnect()">Disonnect</button>
<template v-if="loaded && neko.connected"> <template v-if="loaded && neko.connected">
<button v-if="!is_controlling" @click="neko.controlRequest()">request control</button> <button v-if="!is_controlling" @click="neko.requestControl()">request control</button>
<button v-else @click="neko.controlRelease()">release control</button> <button v-else @click="neko.releaseControl()">release control</button>
</template> </template>
<div ref="container" style="width: 1280px; height: 720px; border: 2px solid red"> <div ref="container" style="width: 1280px; height: 720px; border: 2px solid red">

View File

@ -181,25 +181,25 @@
// TODO: Via REST API. // TODO: Via REST API.
} }
public controlRequest() { public requestControl() {
// TODO: Via REST API. // TODO: Via REST API.
this.websocket.send('control/request') this.websocket.send('control/request')
} }
public controlRelease() { public releaseControl() {
// TODO: Via REST API. // TODO: Via REST API.
this.websocket.send('control/release') this.websocket.send('control/release')
} }
public controlTake() { public takeControl() {
// TODO: Via REST API. // TODO: Via REST API.
} }
public controlGive(id: string) { public giveControl(id: string) {
// TODO: Via REST API. // TODO: Via REST API.
} }
public controlReset() { public resetControl() {
// TODO: Via REST API. // TODO: Via REST API.
} }