BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
178efad0
Commit
178efad0
authored
Apr 13, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '30622-resolve-note-loading-icon-gone' into 'master'
Resolve "Resolve note loading icon gone" Closes #30622 See merge request !10628
parents
2beabafa
66cf90f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
notes.scss
app/assets/stylesheets/pages/notes.scss
+5
-1
_note.html.haml
app/views/projects/notes/_note.html.haml
+2
-3
diff_notes_resolve_spec.rb
spec/features/merge_requests/diff_notes_resolve_spec.rb
+2
-0
No files found.
app/assets/stylesheets/pages/notes.scss
View file @
178efad0
...
@@ -627,7 +627,6 @@ ul.notes {
...
@@ -627,7 +627,6 @@ ul.notes {
}
}
&
:not
(
.is-disabled
)
:hover
,
&
:not
(
.is-disabled
)
:hover
,
&
:not
(
.is-disabled
)
:focus
,
&
.is-active
{
&
.is-active
{
color
:
$gl-text-green
;
color
:
$gl-text-green
;
...
@@ -641,6 +640,11 @@ ul.notes {
...
@@ -641,6 +640,11 @@ ul.notes {
height
:
15px
;
height
:
15px
;
width
:
15px
;
width
:
15px
;
}
}
.loading
{
margin
:
0
;
height
:
auto
;
}
}
}
.discussion-next-btn
{
.discussion-next-btn
{
...
...
app/views/projects/notes/_note.html.haml
View file @
178efad0
...
@@ -52,11 +52,10 @@
...
@@ -52,11 +52,10 @@
":aria-label"
=>
"buttonText"
,
":aria-label"
=>
"buttonText"
,
"@click"
=>
"resolve"
,
"@click"
=>
"resolve"
,
":title"
=>
"buttonText"
,
":title"
=>
"buttonText"
,
"v-show"
=>
"!loading"
,
":ref"
=>
"'button'"
}
":ref"
=>
"'button'"
}
=
icon
(
"spin spinner"
,
"v-show"
=>
"loading"
)
=
render
"shared/icons/icon_status_success.svg"
=
icon
(
"spin spinner"
,
"v-show"
=>
"loading"
,
class:
'loading'
)
%div
{
'v-show'
=>
'!loading'
}=
render
"shared/icons/icon_status_success.svg"
-
if
current_user
-
if
current_user
-
if
note
.
emoji_awardable?
-
if
note
.
emoji_awardable?
...
...
spec/features/merge_requests/diff_notes_resolve_spec.rb
View file @
178efad0
...
@@ -198,6 +198,8 @@ feature 'Diff notes resolve', feature: true, js: true do
...
@@ -198,6 +198,8 @@ feature 'Diff notes resolve', feature: true, js: true do
it
'does not mark discussion as resolved when resolving single note'
do
it
'does not mark discussion as resolved when resolving single note'
do
page
.
first
'.diff-content .note'
do
page
.
first
'.diff-content .note'
do
first
(
'.line-resolve-btn'
).
click
first
(
'.line-resolve-btn'
).
click
expect
(
page
).
to
have_selector
(
'.note-action-button .loading'
)
expect
(
first
(
'.line-resolve-btn'
)[
'data-original-title'
]).
to
eq
(
"Resolved by
#{
user
.
name
}
"
)
expect
(
first
(
'.line-resolve-btn'
)[
'data-original-title'
]).
to
eq
(
"Resolved by
#{
user
.
name
}
"
)
end
end
...
...
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