Commit 4ce19967 authored by Simon Knox's avatar Simon Knox

issue_note_edited_text to note_edited_text

parent a96c3204
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue'; import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue';
import noteHeader from './note_header.vue'; import noteHeader from './note_header.vue';
import issueNoteSignedOutWidget from './issue_note_signed_out_widget.vue'; import issueNoteSignedOutWidget from './issue_note_signed_out_widget.vue';
import issueNoteEditedText from './issue_note_edited_text.vue'; import noteEditedText from './note_edited_text.vue';
import issueNoteForm from './issue_note_form.vue'; import issueNoteForm from './issue_note_form.vue';
import placeholderNote from '../../vue_shared/components/notes/placeholder_note.vue'; import placeholderNote from '../../vue_shared/components/notes/placeholder_note.vue';
import placeholderSystemNote from '../../vue_shared/components/notes/placeholder_system_note.vue'; import placeholderSystemNote from '../../vue_shared/components/notes/placeholder_system_note.vue';
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
userAvatarLink, userAvatarLink,
noteHeader, noteHeader,
issueNoteSignedOutWidget, issueNoteSignedOutWidget,
issueNoteEditedText, noteEditedText,
issueNoteForm, issueNoteForm,
placeholderNote, placeholderNote,
placeholderSystemNote, placeholderSystemNote,
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
action-text="started a discussion" action-text="started a discussion"
class="discussion" class="discussion"
/> />
<issue-note-edited-text <note-edited-text
v-if="lastUpdatedAt" v-if="lastUpdatedAt"
:edited-at="lastUpdatedAt" :edited-at="lastUpdatedAt"
:edited-by="lastUpdatedBy" :edited-by="lastUpdatedBy"
......
<script> <script>
import issueNoteEditedText from './issue_note_edited_text.vue'; import noteEditedText from './note_edited_text.vue';
import issueNoteAwardsList from './issue_note_awards_list.vue'; import issueNoteAwardsList from './issue_note_awards_list.vue';
import issueNoteAttachment from './issue_note_attachment.vue'; import issueNoteAttachment from './issue_note_attachment.vue';
import issueNoteForm from './issue_note_form.vue'; import issueNoteForm from './issue_note_form.vue';
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
autosave, autosave,
], ],
components: { components: {
issueNoteEditedText, noteEditedText,
issueNoteAwardsList, issueNoteAwardsList,
issueNoteAttachment, issueNoteAttachment,
issueNoteForm, issueNoteForm,
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
v-model="note.note" v-model="note.note"
:data-update-url="note.path" :data-update-url="note.path"
class="hidden js-task-list-field"></textarea> class="hidden js-task-list-field"></textarea>
<issue-note-edited-text <note-edited-text
v-if="note.last_edited_at" v-if="note.last_edited_at"
:edited-at="note.last_edited_at" :edited-at="note.last_edited_at"
:edited-by="note.last_edited_by" :edited-by="note.last_edited_by"
......
import Vue from 'vue'; import Vue from 'vue';
import issueNoteEditedText from '~/notes/components/issue_note_edited_text.vue'; import noteEditedText from '~/notes/components/note_edited_text.vue';
describe('issue_note_edited_text', () => { describe('note_edited_text', () => {
let vm; let vm;
let props; let props;
beforeEach(() => { beforeEach(() => {
const Component = Vue.extend(issueNoteEditedText); const Component = Vue.extend(noteEditedText);
props = { props = {
actionText: 'Edited', actionText: 'Edited',
className: 'foo-bar', className: 'foo-bar',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment