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