mirror of
https://github.com/koush/scrypted.git
synced 2026-04-25 09:20:24 +01:00
32 lines
623 B
Vue
32 lines
623 B
Vue
<template>
|
|
<span>
|
|
<span>
|
|
<v-btn depressed dark tile :outlined="!lazyValue.paused" color="blue" @click="pause">Pause</v-btn>
|
|
</span>
|
|
<span>
|
|
<v-btn depressed dark tile outlined color="green" @click="resume">Resume</v-btn>
|
|
</span>
|
|
</span>
|
|
</template>
|
|
|
|
<script>
|
|
import RPCInterface from "./RPCInterface.vue";
|
|
|
|
export default {
|
|
mixins: [RPCInterface],
|
|
methods: {
|
|
pause() {
|
|
this.lazyValue.paused = true;
|
|
this.rpc().pause();
|
|
},
|
|
resume() {
|
|
this.lazyValue.paused = false;
|
|
this.rpc().resume();
|
|
},
|
|
onChange() {
|
|
this.pause();
|
|
}
|
|
}
|
|
};
|
|
</script>
|