summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/components/environment_stop.js.es6
blob: 7292f924e5c3822b1243f34d0c0ddb9489d57a4a (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 || {};

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