2016-11-09 13:04:57 -05:00
|
|
|
/* global Vue */
|
|
|
|
|
2016-11-03 17:38:54 -04:00
|
|
|
window.Vue = require('vue');
|
|
|
|
|
2016-11-09 13:04:57 -05:00
|
|
|
(() => {
|
|
|
|
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', {
|
2016-11-09 13:04:57 -05:00
|
|
|
props: {
|
2016-12-08 06:54:08 -05:00
|
|
|
externalUrl: {
|
2016-11-09 13:04:57 -05:00
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
template: `
|
2016-12-08 06:54:08 -05:00
|
|
|
<a class="btn external_url" :href="externalUrl" target="_blank">
|
2016-11-09 13:04:57 -05:00
|
|
|
<i class="fa fa-external-link"></i>
|
|
|
|
</a>
|
|
|
|
`,
|
|
|
|
});
|
|
|
|
})();
|