Commit b9727227 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(cs): prettier

1 merge request!528WIP: (feat): Minds Pro
Pipeline #82820324 running with stages
import { Component, HostBinding, } from '@angular/core';
import { Component, HostBinding } from '@angular/core';
import { NotificationService } from './modules/notifications/notification.service';
import { AnalyticsService } from './services/analytics';
......@@ -19,7 +19,7 @@ import { BannedService } from './modules/report/banned/banned.service';
import { DiagnosticsService } from './services/diagnostics.service';
import { SiteService } from './services/site.service';
import { PRO_DOMAIN_ROUTES, proRoutes } from './modules/pro/pro.module';
import { Subscription } from "rxjs";
import { Subscription } from 'rxjs';
@Component({
moduleId: module.id,
......@@ -81,7 +81,8 @@ export class Minds {
return;
}
let url = navigationEvent.url.substring(1, navigationEvent.url.length)
let url = navigationEvent.url
.substring(1, navigationEvent.url.length)
.split('/')[0]
.split(';')[0]
.split('?')[0];
......
This diff is collapsed.
......@@ -88,7 +88,10 @@
*ngIf="overlayVisible"
@fastFadeAnimation
>
<div class="m-mediaModal__overlayTitleWrapper" *ngIf="this.contentType !== 'blog'">
<div
class="m-mediaModal__overlayTitleWrapper"
*ngIf="this.contentType !== 'blog'"
>
<!-- TITLE -->
<span
class="m-mediaModal__overlayTitle m-mediaModal__overlayTitle--notFullscreen"
......
......@@ -20,9 +20,7 @@
@{{ currentUsername }}
</a>
<a class="m-pro--channel-footer--link"
(click)="logout()"
i18n
<a class="m-pro--channel-footer--link" (click)="logout()" i18n
>Logout
</a>
</ng-container>
......@@ -44,7 +42,7 @@
[href]="getSocialProfileURL(profile.value)"
rel="noopener noreferrer"
target="_blank"
>
>
<i [ngClass]="[getSocialProfileIconClass(profile)]"></i>
</a>
</span>
......
<div class="m-proChannelTile__container"
(click)="tileClicked()"
[ngSwitch]="getType(entity)"
<div
class="m-proChannelTile__container"
(click)="tileClicked()"
[ngSwitch]="getType(entity)"
>
<m-video
*ngSwitchCase="'object:video'"
......@@ -23,11 +24,7 @@
#player
></m-video>
<img
*ngSwitchDefault
[src]="entity.thumbnail_src"
#img
/>
<img *ngSwitchDefault [src]="entity.thumbnail_src" #img />
</div>
<div
......
......@@ -369,10 +369,7 @@
</ng-template>
</ng-container>
<div
class="m-proSettings__error"
*ngIf="!!error"
>
<div class="m-proSettings__error" *ngIf="!!error">
{{ error }}
</div>
......
......@@ -46,8 +46,7 @@ export class ProSettingsComponent implements OnInit, OnDestroy {
protected cd: ChangeDetectorRef,
protected title: MindsTitle,
protected site: SiteService
) {
}
) {}
ngOnInit() {
this.param$ = this.route.params.subscribe(params => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment