summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/components/environment_terminal_button.js.es6
blob: 050184ba497a3cc5cf6c18c88e58ad5a7d836e26 (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
/*= require vue */
/* global Vue */

(() => {
  window.gl = window.gl || {};
  window.gl.environmentsList = window.gl.environmentsList || {};

  gl.environmentsList.TerminalButtonComponent = 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>
    `,
  });
})();