⏪ (home) revert ready prop
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
/>
|
||||
</section>
|
||||
<div class="global-time">{{ time }}</div>
|
||||
<div class="actions" v-if="ready">
|
||||
<div class="actions">
|
||||
<button v-show="timeState === 'stopped'" @click="start">commencer</button>
|
||||
<button v-show="timeState === 'started'" @click="clear">arrêter</button>
|
||||
</div>
|
||||
@@ -27,12 +27,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {
|
||||
defineComponent,
|
||||
onUnmounted,
|
||||
ref,
|
||||
onMounted
|
||||
} from '@vue/composition-api'
|
||||
import { defineComponent, onUnmounted } from '@vue/composition-api'
|
||||
import { useTimer } from '@/hooks/useTimer'
|
||||
import DevSession from '@/components/DevSession.vue'
|
||||
import ChilledMusic from '@/components/ChilledMusic.vue'
|
||||
@@ -46,8 +41,6 @@ export default defineComponent({
|
||||
IntervalInput
|
||||
},
|
||||
setup() {
|
||||
const ready = ref(false)
|
||||
|
||||
const {
|
||||
interval,
|
||||
start,
|
||||
@@ -60,10 +53,6 @@ export default defineComponent({
|
||||
|
||||
onUnmounted(clear)
|
||||
|
||||
onMounted(() => {
|
||||
ready.value = true
|
||||
})
|
||||
|
||||
return {
|
||||
interval,
|
||||
start,
|
||||
@@ -71,8 +60,7 @@ export default defineComponent({
|
||||
timeState,
|
||||
time,
|
||||
session,
|
||||
isProgrammer1Turn,
|
||||
ready
|
||||
isProgrammer1Turn
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user