2017-04-20 09:04:06 +00:00
|
|
|
<script>
|
2018-07-10 08:11:04 +00:00
|
|
|
import Icon from '~/vue_shared/components/icon.vue';
|
|
|
|
import tooltip from '../../vue_shared/directives/tooltip';
|
|
|
|
import { s__ } from '../../locale';
|
2017-06-06 20:46:31 +00:00
|
|
|
|
2018-07-10 08:11:04 +00:00
|
|
|
/**
|
|
|
|
* Renders the external url link in environments table.
|
|
|
|
*/
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Icon,
|
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
tooltip,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
externalUrl: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
2018-04-28 00:03:55 +00:00
|
|
|
},
|
2018-07-10 08:11:04 +00:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
title() {
|
|
|
|
return s__('Environments|Open live environment');
|
2018-01-05 14:31:01 +00:00
|
|
|
},
|
2018-07-10 08:11:04 +00:00
|
|
|
},
|
|
|
|
};
|
2017-04-20 09:04:06 +00:00
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<a
|
2017-06-06 20:46:31 +00:00
|
|
|
v-tooltip
|
2018-06-11 09:49:47 +00:00
|
|
|
:title="title"
|
|
|
|
:aria-label="title"
|
|
|
|
:href="externalUrl"
|
2017-06-06 20:46:31 +00:00
|
|
|
class="btn external-url"
|
2017-04-20 09:04:06 +00:00
|
|
|
data-container="body"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer nofollow"
|
2018-01-05 14:31:01 +00:00
|
|
|
>
|
2018-07-10 08:11:04 +00:00
|
|
|
<icon name="external-link" />
|
2017-04-20 09:04:06 +00:00
|
|
|
</a>
|
|
|
|
</template>
|