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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
5a5b06de
Commit
5a5b06de
authored
May 10, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed task status with mobile
parent
5a95d6f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
app/assets/javascripts/issue_show/components/description.vue
app/assets/javascripts/issue_show/components/description.vue
+11
-5
No files found.
app/assets/javascripts/issue_show/components/description.vue
View file @
5a5b06de
...
@@ -56,19 +56,25 @@
...
@@ -56,19 +56,25 @@
});
});
},
},
taskStatus
()
{
taskStatus
()
{
const
$issueableHeader
=
$
(
'
.issuable-header
'
);
const
taskRegexMatches
=
this
.
taskStatus
.
match
(
/
(\d
+
)
of
(\d
+
)
/
);
const
$issueableHeader
=
$
(
'
.issuable-meta
'
);
let
$tasks
=
$
(
'
#task_status
'
);
let
$tasks
=
$
(
'
#task_status
'
);
let
$tasksShort
=
$
(
'
#task_status_short
'
);
let
$tasksShort
=
$
(
'
#task_status_short
'
);
if
(
this
.
taskStatus
.
indexOf
(
'
0 of 0
'
)
>=
0
)
{
if
(
this
.
taskStatus
.
indexOf
(
'
0 of 0
'
)
>=
0
||
this
.
taskStatus
.
trim
()
===
''
)
{
$tasks
.
remove
();
$tasks
.
remove
();
$tasksShort
.
remove
();
$tasksShort
.
remove
();
}
else
if
(
!
$tasks
.
length
&&
!
$tasksShort
.
length
)
{
}
else
if
(
!
$tasks
.
length
&&
!
$tasksShort
.
length
)
{
$tasks
=
$issueableHeader
.
append
(
'
<span id="task_status"></span>
'
);
$tasks
=
$issueableHeader
.
append
(
'
<span id="task_status" class="hidden-xs hidden-sm"></span>
'
)
$tasksShort
=
$issueableHeader
.
append
(
'
<span id="task_status_short"></span>
'
);
.
find
(
'
#task_status
'
);
$tasksShort
=
$issueableHeader
.
append
(
'
<span id="task_status_short" class="hidden-md hidden-lg"></span>
'
)
.
find
(
'
#task_status_short
'
);
}
}
$tasks
.
text
(
this
.
taskStatus
);
if
(
taskRegexMatches
)
{
$tasks
.
text
(
this
.
taskStatus
);
$tasksShort
.
text
(
`
${
taskRegexMatches
[
1
]}
/
${
taskRegexMatches
[
2
]}
task
${
taskRegexMatches
[
2
]
>
1
?
'
s
'
:
''
}
`
);
}
},
},
},
},
};
};
...
...
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