BigW Consortium Gitlab

environment_stop.js.es6 588 Bytes
Newer Older
Filipa Lacerda committed
1
/*= require vue */
2 3 4 5 6 7 8 9
/* global Vue */

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

  window.gl.environmentsList.StopComponent = Vue.component('stop-component', {
    props: {
10
      stopUrl: {
11 12 13 14 15 16
        type: String,
        default: '',
      },
    },

    template: `
Filipa Lacerda committed
17
      <a class="btn stop-env-link"
18
        :href="stopUrl"
Filipa Lacerda committed
19
        data-confirm="Are you sure you want to stop this environment?"
20
        data-method="post"
Filipa Lacerda committed
21
        rel="nofollow">
22 23 24 25 26
        <i class="fa fa-stop stop-env-icon"></i>
      </a>
    `,
  });
})();