Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Tim Visée
barbapappa
Commits
349566f9
Verified
Commit
349566f9
authored
Sep 17, 2020
by
Tim Visée
☕
Browse files
Highlight users bought for for half a second, improve UX
parent
9381c060
Pipeline
#191374649
passed with stage
in 5 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
webapp/resources/js/advancedbuy/Users.vue
webapp/resources/js/advancedbuy/Users.vue
+10
-2
No files found.
webapp/resources/js/advancedbuy/Users.vue
View file @
349566f9
...
...
@@ -19,9 +19,9 @@
<a
v-for=
"user in users"
v-on:click.prevent.stop=
"addSelected(user)"
v-bind:class=
"
{ disabled: buying }"
v-bind:class=
"
{ disabled: buying
, active: user.active
}"
href="#"
class="item">
class="
green
item">
{{
user
.
name
||
__
(
'
misc.unknownUser
'
)
}}
<span
v-if=
"user.me"
class=
"subtle"
>
(
{{
__
(
'
misc.me
'
)
}}
)
</span>
</a>
...
...
@@ -59,6 +59,14 @@
if
(
this
.
buying
)
return
;
// Mark user as active for half a second
user
.
active
=
true
;
this
.
$forceUpdate
();
setTimeout
(()
=>
{
user
.
active
=
false
;
this
.
$forceUpdate
();
}
,
500
);
// Focus the search field for quick new searches
let
searchField
=
document
.
getElementById
(
"
user-search
"
);
searchField
.
focus
();
...
...
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