mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
edit naming convention.
This commit is contained in:
parent
7dc02267eb
commit
1b9b37bcc5
@ -154,8 +154,8 @@
|
||||
</tr>
|
||||
<tr class="ok">
|
||||
<td>
|
||||
<button v-if="!neko.state.member.is_controlling" @click="neko.controlRequest()">request control</button>
|
||||
<button v-else @click="neko.controlRelease()">release control</button>
|
||||
<button v-if="!neko.state.member.is_controlling" @click="neko.requestControl()">request control</button>
|
||||
<button v-else @click="neko.releaseControl()">release control</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -186,8 +186,8 @@
|
||||
<button v-if="loaded && neko.connected" @click="disconnect()">Disonnect</button>
|
||||
|
||||
<template v-if="loaded && neko.connected">
|
||||
<button v-if="!is_controlling" @click="neko.controlRequest()">request control</button>
|
||||
<button v-else @click="neko.controlRelease()">release control</button>
|
||||
<button v-if="!is_controlling" @click="neko.requestControl()">request control</button>
|
||||
<button v-else @click="neko.releaseControl()">release control</button>
|
||||
</template>
|
||||
|
||||
<div ref="container" style="width: 1280px; height: 720px; border: 2px solid red">
|
||||
|
@ -181,25 +181,25 @@
|
||||
// TODO: Via REST API.
|
||||
}
|
||||
|
||||
public controlRequest() {
|
||||
public requestControl() {
|
||||
// TODO: Via REST API.
|
||||
this.websocket.send('control/request')
|
||||
}
|
||||
|
||||
public controlRelease() {
|
||||
public releaseControl() {
|
||||
// TODO: Via REST API.
|
||||
this.websocket.send('control/release')
|
||||
}
|
||||
|
||||
public controlTake() {
|
||||
public takeControl() {
|
||||
// TODO: Via REST API.
|
||||
}
|
||||
|
||||
public controlGive(id: string) {
|
||||
public giveControl(id: string) {
|
||||
// TODO: Via REST API.
|
||||
}
|
||||
|
||||
public controlReset() {
|
||||
public resetControl() {
|
||||
// TODO: Via REST API.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user