gitlab-org--gitlab-foss/app/assets/javascripts/environments/components/environment_external_url.js.es6

24 lines
496 B
JavaScript
Raw Normal View History

/* global Vue */
window.Vue = require('vue');
(() => {
window.gl = window.gl || {};
window.gl.environmentsList = window.gl.environmentsList || {};
2017-01-05 05:07:34 -05:00
gl.environmentsList.ExternalUrlComponent = Vue.component('external-url-component', {
props: {
2016-12-08 06:54:08 -05:00
externalUrl: {
type: String,
default: '',
},
},
template: `
2016-12-08 06:54:08 -05:00
<a class="btn external_url" :href="externalUrl" target="_blank">
<i class="fa fa-external-link"></i>
</a>
`,
});
})();