Commit dfd188b3 authored by Tristan Read's avatar Tristan Read Committed by Denys Mishunov

Fetch system notes when changing assignee

parent ef2ce0f3
......@@ -177,9 +177,6 @@ export default {
const { category, action } = trackAlertsDetailsViewsOptions;
Tracking.event(category, action);
},
alertRefresh() {
this.$apollo.queries.alert.refetch();
},
},
};
</script>
......@@ -335,7 +332,6 @@ export default {
</gl-tabs>
<alert-sidebar
:alert="alert"
@alert-refresh="alertRefresh"
@toggle-sidebar="toggleSidebar"
@alert-error="handleAlertSidebarError"
/>
......
......@@ -65,7 +65,6 @@ export default {
:project-id="projectId"
:alert="alert"
:sidebar-collapsed="sidebarStatus"
@alert-refresh="$emit('alert-refresh')"
@toggle-sidebar="$emit('toggle-sidebar')"
@alert-error="$emit('alert-error', $event)"
/>
......
......@@ -163,13 +163,11 @@ export default {
this.hideDropdown();
if (errors[0]) {
return this.$emit(
this.$emit(
'alert-sidebar-error',
`${this.$options.UPDATE_ALERT_ASSIGNEES_GRAPHQL_ERROR} ${errors[0]}.`,
);
}
return this.$emit('alert-refresh');
})
.catch(() => {
this.$emit('alert-error', this.$options.UPDATE_ALERT_ASSIGNEES_ERROR);
......
#import "../fragments/alert_note.fragment.graphql"
mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $iid: String!) {
alertSetAssignees(
input: { iid: $iid, assigneeUsernames: $assigneeUsernames, projectPath: $projectPath }
......@@ -10,6 +12,11 @@ mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $i
username
}
}
notes {
nodes {
...AlertNote
}
}
}
}
}
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