Commit 50d58c83 authored by Bryce Johnson's avatar Bryce Johnson

Check for commands_changes before fetching issuable.

parent 15ac2805
......@@ -41,9 +41,10 @@
gl.IssuableResource.subscribe(data => this.updateState(data));
},
listenForSlashCommands() {
$(document).on('ajax:success', '.gfm-form', () => {
// TODO: check for slash command
this.fetchIssuable();
$(document).on('ajax:success', '.gfm-form', (e, data) => {
if (data.commands_changes !== null) {
this.fetchIssuable();
}
});
},
},
......
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