gitlab-org--gitlab-foss/app/assets/javascripts/environments/components/environment_terminal_button.js.es6
2017-02-09 11:55:35 +00:00

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>
`,
});