gitlab-org--gitlab-foss/app/assets/javascripts/pages/shared/wikis/components/wiki_alert.vue

32 lines
583 B
Vue

<script>
import { GlAlert, GlLink, GlSprintf } from '@gitlab/ui';
export default {
components: {
GlAlert,
GlLink,
GlSprintf,
},
props: {
error: {
type: String,
required: true,
},
wikiPagePath: {
type: String,
required: true,
},
},
};
</script>
<template>
<gl-alert variant="danger" :dismissible="false">
<gl-sprintf :message="error">
<template #wikiLink="{ content }">
<gl-link :href="wikiPagePath" target="_blank">{{ content }}</gl-link>
</template>
</gl-sprintf>
</gl-alert>
</template>