2019-03-02 22:35:43 +05:30
|
|
|
<script>
|
|
|
|
import { GlButton } from '@gitlab/ui';
|
|
|
|
import ClipboardButton from '../../vue_shared/components/clipboard_button.vue';
|
|
|
|
import Icon from '~/vue_shared/components/icon.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Icon,
|
|
|
|
GlButton,
|
|
|
|
ClipboardButton,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
uri: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="clipboard-group">
|
2019-07-31 22:56:46 +05:30
|
|
|
<div class="url-text-field label label-monospace monospace">{{ uri }}</div>
|
2019-03-02 22:35:43 +05:30
|
|
|
<clipboard-button
|
|
|
|
:text="uri"
|
2019-12-21 20:55:43 +05:30
|
|
|
:title="s__('ServerlessURL|Copy URL')"
|
2019-03-02 22:35:43 +05:30
|
|
|
class="input-group-text js-clipboard-btn"
|
|
|
|
/>
|
|
|
|
<gl-button
|
|
|
|
:href="uri"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer nofollow"
|
|
|
|
class="input-group-text btn btn-default"
|
|
|
|
>
|
|
|
|
<icon name="external-link" />
|
|
|
|
</gl-button>
|
|
|
|
</div>
|
|
|
|
</template>
|