diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-30 14:08:49 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-30 14:08:49 +0300 |
commit | 29fd13056b34477abb142bf0380186eff6dd066a (patch) | |
tree | 3ffac6ccc26037aa589cbf99a322e0925fa1ce8c /app/assets/javascripts/issue_show/mixins | |
parent | df7c90116ba1203f1cb1150bb99fa5a4c99e0280 (diff) |
enable meta+enter shortcut to quick submit
Diffstat (limited to 'app/assets/javascripts/issue_show/mixins')
-rw-r--r-- | app/assets/javascripts/issue_show/mixins/update.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/javascripts/issue_show/mixins/update.js b/app/assets/javascripts/issue_show/mixins/update.js new file mode 100644 index 00000000000..72be65b426f --- /dev/null +++ b/app/assets/javascripts/issue_show/mixins/update.js @@ -0,0 +1,10 @@ +import eventHub from '../event_hub'; + +export default { + methods: { + updateIssuable() { + this.formState.updateLoading = true; + eventHub.$emit('update.issuable'); + }, + }, +}; |