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

Check for commands_changes before fetching issuable.

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