debian-mirror-gitlab/app/assets/javascripts/ide/components/terminal/terminal_controls.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
602 B
Vue
Raw Normal View History

2020-06-23 00:09:42 +05:30
<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>