debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_terminal_button.vue

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

33 lines
601 B
Vue
Raw Normal View History

2017-08-17 22:00:37 +05:30
<script>
2018-11-18 11:00:15 +05:30
/**
* Renders a terminal button to open a web terminal.
* Used in environments table.
*/
2021-11-18 22:05:49 +05:30
import { GlDropdownItem } from '@gitlab/ui';
2019-09-30 21:07:59 +05:30
import { __ } from '~/locale';
2017-08-17 22:00:37 +05:30
2018-11-18 11:00:15 +05:30
export default {
components: {
2021-11-18 22:05:49 +05:30
GlDropdownItem,
2018-11-18 11:00:15 +05:30
},
props: {
terminalPath: {
type: String,
required: false,
default: '',
2018-10-15 14:42:47 +05:30
},
2019-02-15 15:39:39 +05:30
disabled: {
type: Boolean,
required: false,
default: false,
},
2018-11-18 11:00:15 +05:30
},
2021-11-18 22:05:49 +05:30
title: __('Terminal'),
2018-11-18 11:00:15 +05:30
};
2017-08-17 22:00:37 +05:30
</script>
<template>
2021-11-18 22:05:49 +05:30
<gl-dropdown-item :href="terminalPath" :disabled="disabled">
{{ $options.title }}
</gl-dropdown-item>
2017-08-17 22:00:37 +05:30
</template>