Commit 698e92a6 authored by Juan Manuel Solaro's avatar Juan Manuel Solaro

(chore) disable algorithm functionality

1 merge request!459WIP: (feat): Minds Pro
Pipeline #74638078 passed with stages
in 28 minutes and 56 seconds
......@@ -165,7 +165,7 @@ export class ProChannelComponent implements OnInit, OnDestroy {
search() {
if(!this.currentURL){
this.currentURL = `/pro/${this.channel.username}/feed/top`;
this.currentURL = `/pro/${this.channel.username}/articles`; //TODO ADD /TOP when algorithm is enable
} else {
if (this.currentURL.includes('query')) {
this.currentURL = this.currentURL.split(';')[0];
......
......@@ -31,7 +31,11 @@ export class ProChannelService {
}
linkTo(to, query, algorithm?) {
let route = ['/pro', this.currentChannel.username, to, algorithm || 'top'];
let route = ['/pro', this.currentChannel.username, to];
if(algorithm) {
route.push(algorithm);
}
if (query) {
route.push({ query });
......
<div class="m-proChannelList__tools">
<div class="m-proChannelListTools__algorithm">
<div class="m-proChannelList__tools" *ngIf="query !== ''" >
<!--<div class="m-proChannelListTools__algorithm">
<a [routerLink]="['/pro', channelUsername, getTypeForRoute(type), 'hot']" routerLinkActive="active" i18n>
<i class="material-icons">whatshot</i>
<span i18n>HOT</span>
......@@ -14,9 +14,9 @@
<i class="material-icons">timelapse</i>
<span i18n>LATEST</span>
</a>
</div>
</div>-->
<ng-container *ngIf="query !== ''">
<ng-container > <!--TODO add ngif after enable algorithm *ngIf="query !== ''"-->
<div class="m-proChannelListTools__searchresult">
<span> Showing results for: <strong> {{query}}</strong></span>
</div>
......
......@@ -49,7 +49,7 @@ const routes: Routes = [
component: ProChannelSignupComponent
},
{
path: ':type/:algorithm',
path: ':type',
component: ProChannelListComponent,
},
]
......
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