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
dbe83fc6
Commit
dbe83fc6
authored
Nov 10, 2020
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace fa-check icon in custom notifications
parent
063506f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
31 deletions
+13
-31
app/assets/javascripts/notifications_form.js
app/assets/javascripts/notifications_form.js
+6
-13
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+0
-17
app/views/shared/notifications/_custom_notifications.html.haml
...iews/shared/notifications/_custom_notifications.html.haml
+2
-1
changelogs/unreleased/mw-replace-fa-icons-custom-notifications.yml
...s/unreleased/mw-replace-fa-icons-custom-notifications.yml
+5
-0
No files found.
app/assets/javascripts/notifications_form.js
View file @
dbe83fc6
...
...
@@ -22,12 +22,8 @@ export default class NotificationsForm {
// eslint-disable-next-line class-methods-use-this
showCheckboxLoadingSpinner
(
$parent
)
{
$parent
.
addClass
(
'
is-loading
'
)
.
find
(
'
.custom-notification-event-loading
'
)
.
removeClass
(
'
fa-check
'
)
.
addClass
(
'
spinner align-middle
'
)
.
removeClass
(
'
is-done
'
);
$parent
.
find
(
'
.is-loading
'
).
removeClass
(
'
gl-display-none
'
);
$parent
.
find
(
'
.is-done
'
).
addClass
(
'
gl-display-none
'
);
}
saveEvent
(
$checkbox
,
$parent
)
{
...
...
@@ -39,14 +35,11 @@ export default class NotificationsForm {
.
then
(({
data
})
=>
{
$checkbox
.
enable
();
if
(
data
.
saved
)
{
$parent
.
find
(
'
.custom-notification-event-loading
'
)
.
toggleClass
(
'
spinner fa-check is-done align-middle
'
);
$parent
.
find
(
'
.is-loading
'
).
addClass
(
'
gl-display-none
'
);
$parent
.
find
(
'
.is-done
'
).
removeClass
(
'
gl-display-none
'
);
setTimeout
(()
=>
{
$parent
.
removeClass
(
'
is-loading
'
)
.
find
(
'
.custom-notification-event-loading
'
)
.
toggleClass
(
'
spinner fa-check is-done align-middle
'
);
$parent
.
find
(
'
.is-done
'
).
addClass
(
'
gl-display-none
'
);
},
2000
);
}
})
...
...
app/assets/stylesheets/pages/projects.scss
View file @
dbe83fc6
...
...
@@ -993,23 +993,6 @@ pre.light-well {
}
}
.custom-notifications-form
{
.is-loading
{
.custom-notification-event-loading
{
display
:
inline-block
;
}
}
}
.custom-notification-event-loading
{
display
:
none
;
margin-left
:
5px
;
&
.is-done
{
color
:
$green-600
;
}
}
.project-refs-form
.dropdown-menu
,
.dropdown-menu-projects
{
width
:
300px
;
...
...
app/views/shared/notifications/_custom_notifications.html.haml
View file @
dbe83fc6
...
...
@@ -30,4 +30,5 @@
%label
.form-check-label
{
for:
field_id
}
%strong
=
notification_event_name
(
event
)
.fa.custom-notification-event-loading.spinner
%span
.spinner.is-loading.gl-vertical-align-middle.gl-display-none
=
sprite_icon
(
'check'
,
css_class:
'is-done gl-display-none gl-vertical-align-middle gl-text-green-600'
)
changelogs/unreleased/mw-replace-fa-icons-custom-notifications.yml
0 → 100644
View file @
dbe83fc6
---
title
:
Replace fa-check icon in custom notifications
merge_request
:
47288
author
:
type
:
changed
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