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

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

  gl.environmentsList.StopComponent = Vue.component('stop-component', {
    props: {
      stopUrl: {
        type: String,
        default: '',
      },
    },

    template: `
      <a class="btn stop-env-link"
        :href="stopUrl"
        data-confirm="Are you sure you want to stop this environment?"
        data-method="post"
        rel="nofollow">
        <i class="fa fa-stop stop-env-icon"></i>
      </a>
    `,
  });
})();