diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /app/assets/javascripts/static_site_editor/pages/success.vue | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'app/assets/javascripts/static_site_editor/pages/success.vue')
-rw-r--r-- | app/assets/javascripts/static_site_editor/pages/success.vue | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/app/assets/javascripts/static_site_editor/pages/success.vue b/app/assets/javascripts/static_site_editor/pages/success.vue deleted file mode 100644 index eb03aa3cca3..00000000000 --- a/app/assets/javascripts/static_site_editor/pages/success.vue +++ /dev/null @@ -1,106 +0,0 @@ -<script> -import { GlButton, GlEmptyState, GlLoadingIcon } from '@gitlab/ui'; -import { s__, __, sprintf } from '~/locale'; - -import appDataQuery from '../graphql/queries/app_data.query.graphql'; -import savedContentMetaQuery from '../graphql/queries/saved_content_meta.query.graphql'; -import { HOME_ROUTE } from '../router/constants'; - -export default { - components: { - GlButton, - GlEmptyState, - GlLoadingIcon, - }, - props: { - mergeRequestsIllustrationPath: { - type: String, - required: true, - }, - }, - apollo: { - savedContentMeta: { - query: savedContentMetaQuery, - }, - appData: { - query: appDataQuery, - }, - }, - computed: { - updatedFileDescription() { - const { sourcePath } = this.appData; - - return sprintf(__('Update %{sourcePath} file'), { sourcePath }); - }, - }, - created() { - if (!this.appData.hasSubmittedChanges) { - this.$router.push(HOME_ROUTE); - } - }, - title: s__('StaticSiteEditor|Your merge request has been created'), - primaryButtonText: __('View merge request'), - returnToSiteBtnText: s__('StaticSiteEditor|Return to site'), - mergeRequestInstructionsHeading: s__( - 'StaticSiteEditor|To see your changes live you will need to do the following things:', - ), - addTitleInstruction: s__('StaticSiteEditor|1. Add a clear title to describe the change.'), - addDescriptionInstruction: s__( - 'StaticSiteEditor|2. Add a description to explain why the change is being made.', - ), - assignMergeRequestInstruction: s__( - 'StaticSiteEditor|3. Assign a person to review and accept the merge request.', - ), - submittingTitle: s__('StaticSiteEditor|Creating your merge request'), - submittingNotePrimary: s__( - 'StaticSiteEditor|You can set an assignee to get your changes reviewed and deployed once your merge request is created.', - ), - submittingNoteSecondary: s__( - 'StaticSiteEditor|A link to view the merge request will appear once ready.', - ), -}; -</script> -<template> - <div> - <div class="gl-border-b-solid gl-border-b-1 gl-border-b-gray-100"> - <div class="container gl-py-4"> - <div class="gl-display-flex"> - <gl-button - v-if="appData.returnUrl" - ref="returnToSiteButton" - class="gl-mr-5 gl-align-self-start" - :href="appData.returnUrl" - >{{ $options.returnToSiteBtnText }}</gl-button - > - <strong class="gl-mt-2"> - {{ updatedFileDescription }} - </strong> - </div> - </div> - </div> - <div class="container"> - <gl-empty-state - class="gl-my-7" - :title="savedContentMeta ? $options.title : $options.submittingTitle" - :primary-button-text="savedContentMeta && $options.primaryButtonText" - :primary-button-link="savedContentMeta && savedContentMeta.mergeRequest.url" - :svg-path="mergeRequestsIllustrationPath" - :svg-height="146" - > - <template #description> - <div v-if="savedContentMeta"> - <p>{{ $options.mergeRequestInstructionsHeading }}</p> - <p>{{ $options.addTitleInstruction }}</p> - <p>{{ $options.addDescriptionInstruction }}</p> - <p>{{ $options.assignMergeRequestInstruction }}</p> - </div> - <div v-else> - <p>{{ $options.submittingNotePrimary }}</p> - <p>{{ $options.submittingNoteSecondary }}</p> - <gl-loading-icon size="xl" /> - </div> - </template> - </gl-empty-state> - </div> - </div> -</template> |