gitlab-org--gitlab-foss/app/assets/javascripts/static_site_editor/components/submit_changes_error.vue

25 lines
544 B
Vue

<script>
import { GlAlert, GlButton } from '@gitlab/ui';
export default {
components: {
GlAlert,
GlButton,
},
props: {
error: {
type: String,
required: true,
},
},
};
</script>
<template>
<gl-alert variant="danger" dismissible @dismiss="$emit('dismiss')">
{{ s__('StaticSiteEditor|An error occurred while submitting your changes.') }} {{ error }}
<template #actions>
<gl-button variant="danger" @click="$emit('retry')">{{ __('Retry') }}</gl-button>
</template>
</gl-alert>
</template>