debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_terminal_button.vue
2021-11-18 22:05:49 +05:30

32 lines
601 B
Vue

<script>
/**
* Renders a terminal button to open a web terminal.
* Used in environments table.
*/
import { GlDropdownItem } from '@gitlab/ui';
import { __ } from '~/locale';
export default {
components: {
GlDropdownItem,
},
props: {
terminalPath: {
type: String,
required: false,
default: '',
},
disabled: {
type: Boolean,
required: false,
default: false,
},
},
title: __('Terminal'),
};
</script>
<template>
<gl-dropdown-item :href="terminalPath" :disabled="disabled">
{{ $options.title }}
</gl-dropdown-item>
</template>