25 lines
510 B
JavaScript
25 lines
510 B
JavaScript
/**
|
|
* Renders a terminal button to open a web terminal.
|
|
* Used in environments table.
|
|
*/
|
|
const Vue = require('vue');
|
|
|
|
module.exports = Vue.component('terminal-button-component', {
|
|
props: {
|
|
terminalPath: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
terminalIconSvg: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
},
|
|
|
|
template: `
|
|
<a class="btn terminal-button"
|
|
:href="terminalPath">
|
|
<span class="js-terminal-icon-container" v-html="terminalIconSvg"></span>
|
|
</a>
|
|
`,
|
|
});
|