diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-20 16:37:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-20 16:37:47 +0300 |
commit | aee0a117a889461ce8ced6fcf73207fe017f1d99 (patch) | |
tree | 891d9ef189227a8445d83f35c1b0fc99573f4380 /app/assets/javascripts/issuable_show/components/issuable_show_root.vue | |
parent | 8d46af3258650d305f53b819eabf7ab18d22f59e (diff) |
Add latest changes from gitlab-org/gitlab@14-6-stable-eev14.6.0-rc42
Diffstat (limited to 'app/assets/javascripts/issuable_show/components/issuable_show_root.vue')
-rw-r--r-- | app/assets/javascripts/issuable_show/components/issuable_show_root.vue | 162 |
1 files changed, 0 insertions, 162 deletions
diff --git a/app/assets/javascripts/issuable_show/components/issuable_show_root.vue b/app/assets/javascripts/issuable_show/components/issuable_show_root.vue deleted file mode 100644 index 011db52cbe3..00000000000 --- a/app/assets/javascripts/issuable_show/components/issuable_show_root.vue +++ /dev/null @@ -1,162 +0,0 @@ -<script> -import IssuableSidebar from '~/issuable_sidebar/components/issuable_sidebar_root.vue'; - -import IssuableBody from './issuable_body.vue'; -import IssuableDiscussion from './issuable_discussion.vue'; -import IssuableHeader from './issuable_header.vue'; - -export default { - components: { - IssuableSidebar, - IssuableHeader, - IssuableBody, - IssuableDiscussion, - }, - props: { - issuable: { - type: Object, - required: true, - }, - statusBadgeClass: { - type: String, - required: false, - default: '', - }, - statusIcon: { - type: String, - required: false, - default: '', - }, - enableEdit: { - type: Boolean, - required: false, - default: false, - }, - enableAutocomplete: { - type: Boolean, - required: false, - default: false, - }, - enableAutosave: { - type: Boolean, - required: false, - default: true, - }, - enableZenMode: { - type: Boolean, - required: false, - default: true, - }, - enableTaskList: { - type: Boolean, - required: false, - default: false, - }, - editFormVisible: { - type: Boolean, - required: false, - default: false, - }, - showFieldTitle: { - type: Boolean, - required: false, - default: false, - }, - descriptionPreviewPath: { - type: String, - required: false, - default: '', - }, - descriptionHelpPath: { - type: String, - required: false, - default: '', - }, - taskCompletionStatus: { - type: Object, - required: false, - default: null, - }, - taskListUpdatePath: { - type: String, - required: false, - default: '', - }, - taskListLockVersion: { - type: Number, - required: false, - default: 0, - }, - }, - methods: { - handleKeydownTitle(e, issuableMeta) { - this.$emit('keydown-title', e, issuableMeta); - }, - handleKeydownDescription(e, issuableMeta) { - this.$emit('keydown-description', e, issuableMeta); - }, - }, -}; -</script> - -<template> - <div class="issuable-show-container"> - <issuable-header - :status-badge-class="statusBadgeClass" - :status-icon="statusIcon" - :blocked="issuable.blocked" - :confidential="issuable.confidential" - :created-at="issuable.createdAt" - :author="issuable.author" - :task-completion-status="taskCompletionStatus" - > - <template #status-badge> - <slot name="status-badge"></slot> - </template> - <template #header-actions> - <slot name="header-actions"></slot> - </template> - </issuable-header> - - <issuable-body - :issuable="issuable" - :status-badge-class="statusBadgeClass" - :status-icon="statusIcon" - :enable-edit="enableEdit" - :enable-autocomplete="enableAutocomplete" - :enable-autosave="enableAutosave" - :enable-zen-mode="enableZenMode" - :enable-task-list="enableTaskList" - :edit-form-visible="editFormVisible" - :show-field-title="showFieldTitle" - :description-preview-path="descriptionPreviewPath" - :description-help-path="descriptionHelpPath" - :task-list-update-path="taskListUpdatePath" - :task-list-lock-version="taskListLockVersion" - @edit-issuable="$emit('edit-issuable', $event)" - @task-list-update-success="$emit('task-list-update-success', $event)" - @task-list-update-failure="$emit('task-list-update-failure')" - @keydown-title="handleKeydownTitle" - @keydown-description="handleKeydownDescription" - > - <template #status-badge> - <slot name="status-badge"></slot> - </template> - <template #edit-form-actions="actionsProps"> - <slot name="edit-form-actions" v-bind="actionsProps"></slot> - </template> - </issuable-body> - - <issuable-discussion> - <template #discussion> - <slot name="discussion"></slot> - </template> - </issuable-discussion> - - <issuable-sidebar> - <template #right-sidebar-items="{ sidebarExpanded, toggleSidebar }"> - <slot name="right-sidebar-items" v-bind="{ sidebarExpanded, toggleSidebar }"></slot> - </template> - </issuable-sidebar> - </div> -</template> |