2017-02-09 06:52:22 -05:00
|
|
|
/**
|
|
|
|
* Renders the external url link in environments table.
|
|
|
|
*/
|
|
|
|
const Vue = require('vue');
|
2016-11-09 13:04:57 -05:00
|
|
|
|
2017-02-09 06:52:22 -05:00
|
|
|
module.exports = Vue.component('external-url-component', {
|
|
|
|
props: {
|
|
|
|
externalUrl: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
2016-11-09 13:04:57 -05:00
|
|
|
},
|
2017-02-09 06:52:22 -05:00
|
|
|
},
|
2016-11-09 13:04:57 -05:00
|
|
|
|
2017-02-09 06:52:22 -05:00
|
|
|
template: `
|
|
|
|
<a class="btn external_url" :href="externalUrl" target="_blank">
|
|
|
|
<i class="fa fa-external-link"></i>
|
|
|
|
</a>
|
|
|
|
`,
|
|
|
|
});
|