Commit 79290749 authored by Tom Quirk's avatar Tom Quirk

Handle all Design view areas in top level comp.

parent 75105452
...@@ -7,8 +7,6 @@ import getDesignQuery from '../../graphql/queries/getDesign.query.graphql'; ...@@ -7,8 +7,6 @@ import getDesignQuery from '../../graphql/queries/getDesign.query.graphql';
import DesignNote from './design_note.vue'; import DesignNote from './design_note.vue';
import DesignReplyForm from './design_reply_form.vue'; import DesignReplyForm from './design_reply_form.vue';
import { updateStoreAfterAddDiscussionComment } from '../../utils/cache_update'; import { updateStoreAfterAddDiscussionComment } from '../../utils/cache_update';
import { ADD_DISCUSSION_COMMENT_ERROR } from '../../utils/error_messages';
import { createDesignDetailFlash } from '../../utils/design_management_utils';
export default { export default {
components: { components: {
...@@ -83,8 +81,8 @@ export default { ...@@ -83,8 +81,8 @@ export default {
this.discussionComment = ''; this.discussionComment = '';
this.hideForm(); this.hideForm();
}, },
onError() { onError(err) {
createDesignDetailFlash(ADD_DISCUSSION_COMMENT_ERROR); this.$emit('error', err);
}, },
hideForm() { hideForm() {
this.isFormRendered = false; this.isFormRendered = false;
......
...@@ -146,7 +146,6 @@ export default { ...@@ -146,7 +146,6 @@ export default {
data: { createImageDiffNote }, data: { createImageDiffNote },
}, },
) { ) {
this.onDiffNoteError('hey');
updateStoreAfterAddImageDiffNote( updateStoreAfterAddImageDiffNote(
store, store,
createImageDiffNote, createImageDiffNote,
...@@ -256,6 +255,7 @@ export default { ...@@ -256,6 +255,7 @@ export default {
:noteable-id="design.id" :noteable-id="design.id"
:discussion-index="index + 1" :discussion-index="index + 1"
:markdown-preview-path="markdownPreviewPath" :markdown-preview-path="markdownPreviewPath"
@error="onDiffNoteError"
/> />
<apollo-mutation <apollo-mutation
v-if="annotationCoordinates" v-if="annotationCoordinates"
......
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