mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Minor fixes to avoid lint errors
This commit is contained in:
@@ -34,7 +34,10 @@ import {
|
|||||||
take,
|
take,
|
||||||
} from 'rxjs/operators';
|
} from 'rxjs/operators';
|
||||||
|
|
||||||
import { APP_CONFIG, AppConfig } from '../../../../config/app-config.interface';
|
import {
|
||||||
|
APP_CONFIG,
|
||||||
|
AppConfig
|
||||||
|
} from '../../../../config/app-config.interface';
|
||||||
import { getCollectionPageRoute } from '../../../collection-page/collection-page-routing-paths';
|
import { getCollectionPageRoute } from '../../../collection-page/collection-page-routing-paths';
|
||||||
import { getCommunityPageRoute } from '../../../community-page/community-page-routing-paths';
|
import { getCommunityPageRoute } from '../../../community-page/community-page-routing-paths';
|
||||||
import { BrowseService } from '../../../core/browse/browse.service';
|
import { BrowseService } from '../../../core/browse/browse.service';
|
||||||
@@ -125,7 +128,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
|
|||||||
})));
|
})));
|
||||||
|
|
||||||
if (this.appConfig[this.contentType].defaultBrowseTab !== 'search') {
|
if (this.appConfig[this.contentType].defaultBrowseTab !== 'search') {
|
||||||
allOptions.push(allOptions.shift())
|
allOptions.push(allOptions.shift());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return allOptions;
|
return allOptions;
|
||||||
@@ -152,7 +155,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
|
|||||||
take(1),
|
take(1),
|
||||||
).subscribe((allOptions: ComColPageNavOption[]) => {
|
).subscribe((allOptions: ComColPageNavOption[]) => {
|
||||||
if (!allOptions.find(o => o.routerLink === this.router.url?.split('?')[0])) {
|
if (!allOptions.find(o => o.routerLink === this.router.url?.split('?')[0])) {
|
||||||
var option = allOptions.find(o => o.id === this.appConfig[this.contentType].defaultBrowseTab);
|
const option = allOptions.find(o => o.id === this.appConfig[this.contentType].defaultBrowseTab);
|
||||||
void this.router.navigate([option.routerLink], { queryParams: option.params });
|
void this.router.navigate([option.routerLink], { queryParams: option.params });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user