Commit 864fa5a9 authored by Simon Knox's avatar Simon Knox

rename issue_note_attachment

parent 4ce19967
<script> <script>
import noteEditedText from './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 noteAttachment from './note_attachment.vue';
import issueNoteForm from './issue_note_form.vue'; import issueNoteForm from './issue_note_form.vue';
import TaskList from '../../task_list'; import TaskList from '../../task_list';
import autosave from '../mixins/autosave'; import autosave from '../mixins/autosave';
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
components: { components: {
noteEditedText, noteEditedText,
issueNoteAwardsList, issueNoteAwardsList,
issueNoteAttachment, noteAttachment,
issueNoteForm, issueNoteForm,
}, },
computed: { computed: {
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
:awards="note.award_emoji" :awards="note.award_emoji"
:toggle-award-path="note.toggle_award_path" :toggle-award-path="note.toggle_award_path"
/> />
<issue-note-attachment <note-attachment
v-if="note.attachment" v-if="note.attachment"
:attachment="note.attachment" :attachment="note.attachment"
/> />
......
<script> <script>
export default { export default {
name: 'issueNoteAttachment', name: 'noteAttachment',
props: { props: {
attachment: { attachment: {
type: Object, type: Object,
......
import Vue from 'vue'; import Vue from 'vue';
import issueNoteAttachment from '~/notes/components/issue_note_attachment.vue'; import noteAttachment from '~/notes/components/note_attachment.vue';
describe('issue note attachment', () => { describe('issue note attachment', () => {
it('should render properly', () => { it('should render properly', () => {
...@@ -11,7 +11,7 @@ describe('issue note attachment', () => { ...@@ -11,7 +11,7 @@ describe('issue note attachment', () => {
}, },
}; };
const Component = Vue.extend(issueNoteAttachment); const Component = Vue.extend(noteAttachment);
const vm = new Component({ const vm = new Component({
propsData: props, propsData: props,
}).$mount(); }).$mount();
......
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