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
f4e65d80
Commit
f4e65d80
authored
Dec 12, 2019
by
Jan Beckmann
Committed by
Phil Hughes
Dec 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto-focus "New epic" text box, fix "Add epic" placeholder
Closes #37005, #37028
parent
56a1cb09
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
ee/app/assets/javascripts/epic/components/epic_create.vue
ee/app/assets/javascripts/epic/components/epic_create.vue
+6
-9
ee/app/assets/javascripts/related_issues/constants.js
ee/app/assets/javascripts/related_issues/constants.js
+1
-1
ee/changelogs/unreleased/37028-epic-placeholder-text.yml
ee/changelogs/unreleased/37028-epic-placeholder-text.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+2
-2
No files found.
ee/app/assets/javascripts/epic/components/epic_create.vue
View file @
f4e65d80
...
@@ -4,12 +4,16 @@ import { GlButton } from '@gitlab/ui';
...
@@ -4,12 +4,16 @@ import { GlButton } from '@gitlab/ui';
import
{
__
}
from
'
~/locale
'
;
import
{
__
}
from
'
~/locale
'
;
import
LoadingButton
from
'
~/vue_shared/components/loading_button.vue
'
;
import
LoadingButton
from
'
~/vue_shared/components/loading_button.vue
'
;
import
autofocusonshow
from
'
~/vue_shared/directives/autofocusonshow
'
;
export
default
{
export
default
{
components
:
{
components
:
{
GlButton
,
GlButton
,
LoadingButton
,
LoadingButton
,
},
},
directives
:
{
autofocusonshow
,
},
props
:
{
props
:
{
alignRight
:
{
alignRight
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -38,27 +42,20 @@ export default {
...
@@ -38,27 +42,20 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapActions
([
'
setEpicCreateTitle
'
,
'
createEpic
'
]),
...
mapActions
([
'
setEpicCreateTitle
'
,
'
createEpic
'
]),
focusInput
()
{
this
.
$nextTick
(()
=>
this
.
$refs
.
epicTitleInput
.
focus
());
},
},
},
};
};
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"dropdown epic-create-dropdown"
>
<div
class=
"dropdown epic-create-dropdown"
>
<gl-button
<gl-button
variant=
"success"
class=
"qa-new-epic-button"
data-toggle=
"dropdown"
>
variant=
"success"
class=
"qa-new-epic-button"
data-toggle=
"dropdown"
@
click=
"focusInput"
>
{{
__
(
'
New epic
'
)
}}
{{
__
(
'
New epic
'
)
}}
</gl-button>
</gl-button>
<div
:class=
"
{ 'dropdown-menu-right': alignRight }" class="dropdown-menu">
<div
:class=
"
{ 'dropdown-menu-right': alignRight }" class="dropdown-menu">
<input
<input
ref=
"epicTitleInput"
ref=
"epicTitleInput"
v-model=
"epicTitle"
v-model=
"epicTitle"
v-autofocusonshow
:disabled=
"epicCreateInProgress"
:disabled=
"epicCreateInProgress"
:placeholder=
"__('Title')"
:placeholder=
"__('Title')"
type=
"text"
type=
"text"
...
...
ee/app/assets/javascripts/related_issues/constants.js
View file @
f4e65d80
...
@@ -9,7 +9,7 @@ export const issuableTypesMap = {
...
@@ -9,7 +9,7 @@ export const issuableTypesMap = {
export
const
autoCompleteTextMap
=
{
export
const
autoCompleteTextMap
=
{
true
:
{
true
:
{
[
issuableTypesMap
.
ISSUE
]:
__
(
'
or <#issue id>
'
),
[
issuableTypesMap
.
ISSUE
]:
__
(
'
or <#issue id>
'
),
[
issuableTypesMap
.
EPIC
]:
__
(
'
or <
#
epic id>
'
),
[
issuableTypesMap
.
EPIC
]:
__
(
'
or <
&
epic id>
'
),
[
issuableTypesMap
.
MERGE_REQUEST
]:
__
(
'
or <!merge request id>
'
),
[
issuableTypesMap
.
MERGE_REQUEST
]:
__
(
'
or <!merge request id>
'
),
},
},
false
:
{
false
:
{
...
...
ee/changelogs/unreleased/37028-epic-placeholder-text.yml
0 → 100644
View file @
f4e65d80
---
title
:
Auto-focus title text box when creating new epics
merge_request
:
21516
author
:
Jan Beckmann
type
:
fixed
locale/gitlab.pot
View file @
f4e65d80
...
@@ -53,10 +53,10 @@ msgstr ""
...
@@ -53,10 +53,10 @@ msgstr ""
msgid " or <!merge request id>"
msgid " or <!merge request id>"
msgstr ""
msgstr ""
msgid " or <#
epic
id>"
msgid " or <#
issue
id>"
msgstr ""
msgstr ""
msgid " or <
#issue
id>"
msgid " or <
&epic
id>"
msgstr ""
msgstr ""
msgid " or references (e.g. path/to/project!merge_request_id)"
msgid " or references (e.g. path/to/project!merge_request_id)"
...
...
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