Add pause feature
This commit is contained in:
@ -3,6 +3,9 @@
|
||||
<h1 class="title">
|
||||
[{{ shared.name }}] {{ villageName }}
|
||||
<span class="version">- {{ shared.version }}</span>
|
||||
<a href="#" v-on:click.prevent="pause()">
|
||||
pause <span v-if="shared.pauseSeconds" v-text="shared.pauseSeconds"></span>
|
||||
</a>
|
||||
</h1>
|
||||
</section>
|
||||
</template>
|
||||
@ -20,6 +23,11 @@ export default {
|
||||
return village ? village.name : 'Unknown';
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
pause() {
|
||||
this.shared.pause();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
<script>
|
||||
import * as dateFormat from 'dateformat';
|
||||
import { timestamp } from '../utils';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
Reference in New Issue
Block a user