From e3bddb6223ceba9e1258df28cfa046641d12710f Mon Sep 17 00:00:00 2001 From: Winnie Hellmann Date: Thu, 29 Nov 2018 14:54:40 +0100 Subject: [PATCH] Replace existing uses of timeline-entry with timeline entry component --- .../notes/components/comment_form.vue | 254 ++++++++-------- .../notes/components/noteable_discussion.vue | 272 +++++++++--------- .../notes/components/noteable_note.vue | 98 +++---- .../components/notes/placeholder_note.vue | 44 +-- .../notes/placeholder_system_note.vue | 15 +- .../components/notes/skeleton_note.vue | 16 +- .../components/notes/system_note.vue | 50 ++-- .../components/notes/timeline_entry_item.vue | 2 +- .../notes/timeline_entry_item_spec.js | 6 +- 9 files changed, 378 insertions(+), 379 deletions(-) diff --git a/app/assets/javascripts/notes/components/comment_form.vue b/app/assets/javascripts/notes/components/comment_form.vue index 884ccca7bde..841fcec96e8 100644 --- a/app/assets/javascripts/notes/components/comment_form.vue +++ b/app/assets/javascripts/notes/components/comment_form.vue @@ -4,6 +4,7 @@ import { mapActions, mapGetters, mapState } from 'vuex'; import _ from 'underscore'; import Autosize from 'autosize'; import { __, sprintf } from '~/locale'; +import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue'; import Flash from '../../flash'; import Autosave from '../../autosave'; import { @@ -30,6 +31,7 @@ export default { markdownField, userAvatarLink, loadingButton, + TimelineEntryItem, }, mixins: [issuableStateMixin], props: { @@ -309,137 +311,135 @@ Please check your network connection and try again.`;
-
-
-
-
-
- -
-
-
-
+
    + +
    +
    + +
    +
    + +
    - + + + + +
    +
    + + + + +
    + + - - - -
    -
    - - - - -
    - - - - -
    - -
    + Discard draft + +
    +
-
-
+ +
diff --git a/app/assets/javascripts/notes/components/noteable_discussion.vue b/app/assets/javascripts/notes/components/noteable_discussion.vue index da78c6e21a1..4eb3b49392c 100644 --- a/app/assets/javascripts/notes/components/noteable_discussion.vue +++ b/app/assets/javascripts/notes/components/noteable_discussion.vue @@ -6,6 +6,7 @@ import { truncateSha } from '~/lib/utils/text_utility'; import { s__, __, sprintf } from '~/locale'; import systemNote from '~/vue_shared/components/notes/system_note.vue'; import icon from '~/vue_shared/components/icon.vue'; +import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue'; import Flash from '../../flash'; import { SYSTEM_NOTE } from '../constants'; import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue'; @@ -37,6 +38,7 @@ export default { placeholderNote, placeholderSystemNote, systemNote, + TimelineEntryItem, }, directives: { GlTooltip: GlTooltipDirective, @@ -301,162 +303,156 @@ Please check your network connection and try again.`;