2017-08-17 22:00:37 +05:30
|
|
|
<script>
|
2018-11-18 11:00:15 +05:30
|
|
|
import Icon from '~/vue_shared/components/icon.vue';
|
2019-01-03 12:48:30 +05:30
|
|
|
import tooltip from '../../vue_shared/directives/tooltip';
|
|
|
|
import { s__ } from '../../locale';
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
/**
|
|
|
|
* Renders the external url link in environments table.
|
|
|
|
*/
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Icon,
|
|
|
|
},
|
|
|
|
directives: {
|
2019-01-03 12:48:30 +05:30
|
|
|
tooltip,
|
2018-11-18 11:00:15 +05:30
|
|
|
},
|
|
|
|
props: {
|
|
|
|
externalUrl: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
2018-11-18 11:00:15 +05:30
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
title() {
|
|
|
|
return s__('Environments|Open live environment');
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
2018-11-18 11:00:15 +05:30
|
|
|
},
|
|
|
|
};
|
2017-08-17 22:00:37 +05:30
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<a
|
2019-01-03 12:48:30 +05:30
|
|
|
v-tooltip
|
2018-11-08 19:23:39 +05:30
|
|
|
:title="title"
|
|
|
|
:aria-label="title"
|
|
|
|
:href="externalUrl"
|
2017-09-10 17:25:29 +05:30
|
|
|
class="btn external-url"
|
2019-01-03 12:48:30 +05:30
|
|
|
data-container="body"
|
2017-08-17 22:00:37 +05:30
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer nofollow"
|
2018-03-17 18:26:18 +05:30
|
|
|
>
|
2018-11-18 11:00:15 +05:30
|
|
|
<icon name="external-link" />
|
2017-08-17 22:00:37 +05:30
|
|
|
</a>
|
|
|
|
</template>
|