Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
29fd1305
Commit
29fd1305
authored
May 30, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable meta+enter shortcut to quick submit
parent
df7c9011
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
+21
-6
app/assets/javascripts/issue_show/components/edit_actions.vue
...assets/javascripts/issue_show/components/edit_actions.vue
+2
-4
app/assets/javascripts/issue_show/components/fields/description.vue
.../javascripts/issue_show/components/fields/description.vue
+4
-1
app/assets/javascripts/issue_show/components/fields/title.vue
...assets/javascripts/issue_show/components/fields/title.vue
+5
-1
app/assets/javascripts/issue_show/mixins/update.js
app/assets/javascripts/issue_show/mixins/update.js
+10
-0
No files found.
app/assets/javascripts/issue_show/components/edit_actions.vue
View file @
29fd1305
<
script
>
<
script
>
import
updateMixin
from
'
../mixins/update
'
;
import
eventHub
from
'
../event_hub
'
;
import
eventHub
from
'
../event_hub
'
;
export
default
{
export
default
{
mixins
:
[
updateMixin
],
props
:
{
props
:
{
canDestroy
:
{
canDestroy
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -23,10 +25,6 @@
...
@@ -23,10 +25,6 @@
},
},
},
},
methods
:
{
methods
:
{
updateIssuable
()
{
this
.
formState
.
updateLoading
=
true
;
eventHub
.
$emit
(
'
update.issuable
'
);
},
closeForm
()
{
closeForm
()
{
eventHub
.
$emit
(
'
close.form
'
);
eventHub
.
$emit
(
'
close.form
'
);
},
},
...
...
app/assets/javascripts/issue_show/components/fields/description.vue
View file @
29fd1305
<
script
>
<
script
>
/* global Flash */
/* global Flash */
import
updateMixin
from
'
../../mixins/update
'
;
import
markdownField
from
'
../../../vue_shared/components/markdown/field.vue
'
;
import
markdownField
from
'
../../../vue_shared/components/markdown/field.vue
'
;
export
default
{
export
default
{
mixins
:
[
updateMixin
],
props
:
{
props
:
{
formState
:
{
formState
:
{
type
:
Object
,
type
:
Object
,
...
@@ -44,7 +46,8 @@
...
@@ -44,7 +46,8 @@
v-model=
"formState.description"
v-model=
"formState.description"
ref=
"textarea"
ref=
"textarea"
slot=
"textarea"
slot=
"textarea"
placeholder=
"Write a comment or drag your files here..."
>
placeholder=
"Write a comment or drag your files here..."
@
keydown.meta.enter=
"updateIssuable"
>
</textarea>
</textarea>
</markdown-field>
</markdown-field>
</div>
</div>
...
...
app/assets/javascripts/issue_show/components/fields/title.vue
View file @
29fd1305
<
script
>
<
script
>
import
updateMixin
from
'
../../mixins/update
'
;
export
default
{
export
default
{
mixins
:
[
updateMixin
],
props
:
{
props
:
{
formState
:
{
formState
:
{
type
:
Object
,
type
:
Object
,
...
@@ -22,6 +25,7 @@
...
@@ -22,6 +25,7 @@
type=
"text"
type=
"text"
placeholder=
"Issue title"
placeholder=
"Issue title"
aria-label=
"Issue title"
aria-label=
"Issue title"
v-model=
"formState.title"
/>
v-model=
"formState.title"
@
keydown.meta.enter=
"updateIssuable"
/>
</fieldset>
</fieldset>
</
template
>
</
template
>
app/assets/javascripts/issue_show/mixins/update.js
0 → 100644
View file @
29fd1305
import
eventHub
from
'
../event_hub
'
;
export
default
{
methods
:
{
updateIssuable
()
{
this
.
formState
.
updateLoading
=
true
;
eventHub
.
$emit
(
'
update.issuable
'
);
},
},
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment