debian-mirror-gitlab/app/assets/javascripts/ide/components/terminal/terminal_controls.vue
2020-06-23 00:09:42 +05:30

27 lines
602 B
Vue

<script>
import ScrollButton from '~/ide/components/jobs/detail/scroll_button.vue';
export default {
components: {
ScrollButton,
},
props: {
canScrollUp: {
type: Boolean,
required: false,
default: false,
},
canScrollDown: {
type: Boolean,
required: false,
default: false,
},
},
};
</script>
<template>
<div class="controllers">
<scroll-button :disabled="!canScrollUp" direction="up" @click="$emit('scroll-up')" />
<scroll-button :disabled="!canScrollDown" direction="down" @click="$emit('scroll-down')" />
</div>
</template>