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';
import
{
__
}
from
'
~/locale
'
;
import
LoadingButton
from
'
~/vue_shared/components/loading_button.vue
'
;
import
autofocusonshow
from
'
~/vue_shared/directives/autofocusonshow
'
;
export
default
{
components
:
{
GlButton
,
LoadingButton
,
},
directives
:
{
autofocusonshow
,
},
props
:
{
alignRight
:
{
type
:
Boolean
,
...
...
@@ -38,27 +42,20 @@ export default {
},
methods
:
{
...
mapActions
([
'
setEpicCreateTitle
'
,
'
createEpic
'
]),
focusInput
()
{
this
.
$nextTick
(()
=>
this
.
$refs
.
epicTitleInput
.
focus
());
},
},
};
</
script
>
<
template
>
<div
class=
"dropdown epic-create-dropdown"
>
<gl-button
variant=
"success"
class=
"qa-new-epic-button"
data-toggle=
"dropdown"
@
click=
"focusInput"
>
<gl-button
variant=
"success"
class=
"qa-new-epic-button"
data-toggle=
"dropdown"
>
{{
__
(
'
New epic
'
)
}}
</gl-button>
<div
:class=
"
{ 'dropdown-menu-right': alignRight }" class="dropdown-menu">
<input
ref=
"epicTitleInput"
v-model=
"epicTitle"
v-autofocusonshow
:disabled=
"epicCreateInProgress"
:placeholder=
"__('Title')"
type=
"text"
...
...
ee/app/assets/javascripts/related_issues/constants.js
View file @
f4e65d80
...
...
@@ -9,7 +9,7 @@ export const issuableTypesMap = {
export
const
autoCompleteTextMap
=
{
true
:
{
[
issuableTypesMap
.
ISSUE
]:
__
(
'
or <#issue id>
'
),
[
issuableTypesMap
.
EPIC
]:
__
(
'
or <
#
epic id>
'
),
[
issuableTypesMap
.
EPIC
]:
__
(
'
or <
&
epic id>
'
),
[
issuableTypesMap
.
MERGE_REQUEST
]:
__
(
'
or <!merge request id>
'
),
},
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 ""
msgid " or <!merge request id>"
msgstr ""
msgid " or <#
epic
id>"
msgid " or <#
issue
id>"
msgstr ""
msgid " or <
#issue
id>"
msgid " or <
&epic
id>"
msgstr ""
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