2017-08-17 22:00:37 +05:30
|
|
|
<script>
|
2017-09-10 17:25:29 +05:30
|
|
|
import tooltip from '../../vue_shared/directives/tooltip';
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
/**
|
|
|
|
* Renders the external url link in environments table.
|
|
|
|
*/
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
externalUrl: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
directives: {
|
|
|
|
tooltip,
|
|
|
|
},
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
computed: {
|
|
|
|
title() {
|
|
|
|
return 'Open';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<a
|
2017-09-10 17:25:29 +05:30
|
|
|
v-tooltip
|
|
|
|
class="btn external-url"
|
2017-08-17 22:00:37 +05:30
|
|
|
data-container="body"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer nofollow"
|
|
|
|
:title="title"
|
|
|
|
:aria-label="title"
|
|
|
|
:href="externalUrl">
|
|
|
|
<i
|
|
|
|
class="fa fa-external-link"
|
|
|
|
aria-hidden="true" />
|
|
|
|
</a>
|
|
|
|
</template>
|