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
888
Issues
888
List
Boards
Labels
Service Desk
Milestones
Merge Requests
48
Merge Requests
48
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
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
c7ad7185
Commit
c7ad7185
authored
1 hour ago
by
Olivia Madrid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): lint.
parent
2b413e4a
feat/media-modal-service-1822
1 merge request
!530
WIP: Agnostic media modal
Pipeline
#79372676
passed with stages
in 49 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
37 deletions
+1
-37
card.ts
src/app/modules/blogs/card/card.ts
+1
-37
No files found.
src/app/modules/blogs/card/card.ts
View file @
c7ad7185
...
...
@@ -2,11 +2,6 @@ import { Component } from '@angular/core';
import
{
Session
}
from
'
../../../services/session
'
;
import
{
AttachmentService
}
from
'
../../../services/attachment
'
;
import
{
ACCESS
}
from
'
../../../services/list-options
'
;
// import { Router } from '@angular/router';
// import { MediaModalComponent } from '../../media/modal/modal.component';
// import { OverlayModalService } from '../../../services/ux/overlay-modal';
// import { FeaturesService } from '../../../services/features.service';
// import isMobile from '../../../helpers/is-mobile';
@
Component
({
moduleId
:
module
.
id
,
...
...
@@ -19,13 +14,7 @@ export class BlogCard {
blog
;
access
=
ACCESS
;
constructor
(
public
session
:
Session
,
public
attachment
:
AttachmentService
)
// private router: Router,
// protected featuresService: FeaturesService,
// private overlayModal: OverlayModalService
{
constructor
(
public
session
:
Session
,
public
attachment
:
AttachmentService
)
{
this
.
minds
=
window
.
Minds
;
}
...
...
@@ -34,29 +23,4 @@ export class BlogCard {
value
.
thumbnail_src
=
'
assets/videos/earth-1/earth-1.png
'
;
this
.
blog
=
value
;
}
// showMediaModal() {
// const route = this.blog.route
// ? `/${this.blog.route}`
// : `/blog/view${this.blog.guid}`;
// const isNotTablet = Math.min(screen.width, screen.height) < 768;
// if (isMobile() && isNotTablet) {
// this.router.navigate([route]);
// return;
// }
// if (!this.featuresService.has('media-modal')) {
// this.router.navigate([route]);
// return;
// } else {
// this.blog.modal_source_url = this.router.url;
// this.overlayModal
// .create(MediaModalComponent, this.blog, {
// class: 'm-overlayModal--media',
// })
// .present();
// }
// }
}
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