Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
867
Issues
867
List
Boards
Labels
Service Desk
Milestones
Merge Requests
53
Merge Requests
53
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
bb7450e4
Commit
bb7450e4
authored
28 minutes ago
by
Olivia Madrid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): Media modal - don't allow click on unloaded videos
parent
d986f5b2
feat/media-modal-1539
1 merge request
!467
[Sprint/KiltedKoala](feat): Media modal
Pipeline
#77161100
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
video.component.scss
src/app/modules/media/components/video/video.component.scss
+5
-1
video.component.ts
src/app/modules/media/components/video/video.component.ts
+8
-1
No files found.
src/app/modules/media/components/video/video.component.scss
View file @
bb7450e4
...
...
@@ -5,7 +5,11 @@
m-video
{
position
:
relative
;
display
:block
;
cursor
:pointer
;
&
.clickable
{
cursor
:pointer
;
}
&
:hover
{
.minds-video-play-icon
{
opacity
:
1
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/media/components/video/video.component.ts
View file @
bb7450e4
...
...
@@ -15,7 +15,8 @@ import isMobile from '../../../../helpers/is-mobile';
selector
:
'
m-video
'
,
host
:
{
'
(mouseenter)
'
:
'
onMouseEnter()
'
,
'
(mouseleave)
'
:
'
onMouseLeave()
'
'
(mouseleave)
'
:
'
onMouseLeave()
'
,
'
[class.clickable]
'
:
'
canPlayThrough
'
},
templateUrl
:
'
video.component.html
'
,
animations
:
[
...
...
@@ -80,6 +81,7 @@ export class MindsVideoComponent implements OnDestroy {
showControls
:
boolean
=
false
;
stopSeekerTimeout
:
any
=
null
;
metadataLoaded
:
boolean
=
false
;
canPlayThrough
:
boolean
=
false
;
current
:
{
type
:
'
torrent
'
|
'
direct-http
'
,
src
:
string
};
protected
candidates
:
SourceCandidates
=
new
SourceCandidates
();
...
...
@@ -281,6 +283,7 @@ export class MindsVideoComponent implements OnDestroy {
}
onCanPlayThrough
()
{
this
.
canPlayThrough
=
true
;
this
.
videoCanPlayThrough
.
emit
();
}
...
...
@@ -389,6 +392,10 @@ export class MindsVideoComponent implements OnDestroy {
}
requestMediaModal
()
{
if
(
!
this
.
canPlayThrough
)
{
return
;
}
if
(
this
.
isModal
)
{
this
.
toggle
();
return
;
...
...
This diff is collapsed.
Click to expand it.
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