blob: 0df07f0457f66ae2c9d296a10fae8a99db9fcb7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<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>
|