2017-02-09 06:52:22 -05:00
|
|
|
/**
|
|
|
|
* Renders a terminal button to open a web terminal.
|
|
|
|
* Used in environments table.
|
|
|
|
*/
|
2017-03-13 20:58:26 -04:00
|
|
|
import terminalIconSvg from 'icons/_icon_terminal.svg';
|
2016-12-14 19:59:04 -05:00
|
|
|
|
2017-03-13 20:58:26 -04:00
|
|
|
export default {
|
2017-02-09 06:52:22 -05:00
|
|
|
props: {
|
|
|
|
terminalPath: {
|
|
|
|
type: String,
|
2017-03-13 20:58:26 -04:00
|
|
|
required: false,
|
2017-02-09 06:52:22 -05:00
|
|
|
default: '',
|
|
|
|
},
|
2017-02-24 13:47:17 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
2017-03-31 05:20:11 -04:00
|
|
|
return {
|
|
|
|
terminalIconSvg,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
title() {
|
|
|
|
return 'Terminal';
|
|
|
|
},
|
2017-02-09 06:52:22 -05:00
|
|
|
},
|
2016-12-14 19:59:04 -05:00
|
|
|
|
2017-02-09 06:52:22 -05:00
|
|
|
template: `
|
2017-03-31 05:20:11 -04:00
|
|
|
<a class="btn terminal-button has-tooltip"
|
|
|
|
data-container="body"
|
|
|
|
:title="title"
|
|
|
|
:aria-label="title"
|
2017-02-09 06:52:22 -05:00
|
|
|
:href="terminalPath">
|
2017-02-24 19:44:46 -05:00
|
|
|
${terminalIconSvg}
|
2017-02-09 06:52:22 -05:00
|
|
|
</a>
|
|
|
|
`,
|
2017-03-13 20:58:26 -04:00
|
|
|
};
|