Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
d7e59d94
Commit
d7e59d94
authored
11 months ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Fix the tooltip for the file upload list
parent
9afc31cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1848
Remote access:dark theme
Pipeline
#442141
passed with stages
in 25 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildsystem/network-sharing-server/src/components/UploadDialog.vue
+15
-8
15 additions, 8 deletions
...em/network-sharing-server/src/components/UploadDialog.vue
with
15 additions
and
8 deletions
buildsystem/network-sharing-server/src/components/UploadDialog.vue
+
15
−
8
View file @
d7e59d94
...
...
@@ -30,7 +30,8 @@
<
tbody
>
<
tr
v
-
for
=
"
(fileUpload, index) in uploadStore.uploadingFiles
"
:
key
=
"
index
"
>
<
td
class
=
"
align-middle
"
>
<
p
class
=
"
text-truncate
"
>
{{
fileUpload
.
file
.
name
}}
<
/p
>
<
p
class
=
"
text-truncate
"
data
-
bs
-
toggle
=
"
tooltip
"
data
-
bs
-
placement
=
"
left
"
:
title
=
"
(fileUpload.file.name)
"
>
{{
fileUpload
.
file
.
name
}}
<
/p
>
<
div
v
-
if
=
"
(fileUpload.status == 'uploading')
"
class
=
"
progress
"
role
=
"
progressbar
"
aria
-
valuenow
=
"
0
"
aria
-
valuemin
=
"
0
"
aria
-
valuemax
=
"
100
"
>
<
div
class
=
"
progress-bar bg-primary
"
v
-
bind
:
style
=
"
{ width: getProgress(fileUpload)
}
"
><
/div
>
...
...
@@ -89,6 +90,8 @@ export default {
for
(
const
file
of
fileInput
.
files
)
{
this
.
uploadStore
.
changeFileStatus
(
file
,
"
waiting
"
)
}
this
.
refreshTooltips
()
}
,
uploadAll
()
{
this
.
uploadStore
.
uploadingFiles
.
filter
(
upload
=>
upload
.
status
==
'
waiting
'
).
forEach
(
element
=>
{
...
...
@@ -106,6 +109,7 @@ export default {
for
(
const
file
of
e
.
dataTransfer
.
files
)
{
this
.
uploadStore
.
changeFileStatus
(
file
,
"
waiting
"
)
}
this
.
refreshTooltips
()
}
,
setDragging
(
dragging
)
{
if
(
!
dragging
)
{
...
...
@@ -116,6 +120,16 @@ export default {
this
.
dragging
=
true
clearTimeout
(
this
.
inActiveTimeout
)
}
}
,
refreshTooltips
()
{
this
.
$nextTick
(()
=>
{
var
tooltipTriggerList
=
[].
slice
.
call
(
document
.
querySelectorAll
(
'
[data-bs-toggle="tooltip"]
'
))
tooltipTriggerList
.
map
(
function
(
tooltipTriggerEl
)
{
return
new
Tooltip
(
tooltipTriggerEl
,
{
trigger
:
'
hover
'
}
)
}
)
}
);
}
}
,
mounted
()
{
...
...
@@ -125,13 +139,6 @@ export default {
e
.
preventDefault
();
e
.
stopPropagation
();
}
.
bind
(
this
),
false
);
var
tooltipTriggerList
=
[].
slice
.
call
(
this
.
$el
.
querySelectorAll
(
'
[data-bs-toggle="tooltip"]
'
))
tooltipTriggerList
.
map
(
function
(
tooltipTriggerEl
)
{
return
new
Tooltip
(
tooltipTriggerEl
,
{
trigger
:
'
hover
'
}
)
}
)
}
}
<
/script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment