mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +00:00
ESLint: fix dangling commas
This commit is contained in:
@@ -24,7 +24,7 @@ export interface ComColPageNavOption {
|
||||
@Component({
|
||||
selector: 'ds-comcol-page-browse-by',
|
||||
styleUrls: ['./comcol-page-browse-by.component.scss'],
|
||||
templateUrl: './comcol-page-browse-by.component.html'
|
||||
templateUrl: './comcol-page-browse-by.component.html',
|
||||
})
|
||||
export class ComcolPageBrowseByComponent implements OnInit {
|
||||
/**
|
||||
@@ -40,7 +40,7 @@ export class ComcolPageBrowseByComponent implements OnInit {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private browseService: BrowseService
|
||||
private browseService: BrowseService,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -54,27 +54,27 @@ export class ComcolPageBrowseByComponent implements OnInit {
|
||||
id: config.id,
|
||||
label: `browse.comcol.by.${config.id}`,
|
||||
routerLink: `/browse/${config.id}`,
|
||||
params: { scope: this.id }
|
||||
params: { scope: this.id },
|
||||
}));
|
||||
|
||||
if (this.contentType === 'collection') {
|
||||
this.allOptions = [{
|
||||
id: this.id,
|
||||
label: 'collection.page.browse.recent.head',
|
||||
routerLink: getCollectionPageRoute(this.id)
|
||||
routerLink: getCollectionPageRoute(this.id),
|
||||
}, ...this.allOptions];
|
||||
} else if (this.contentType === 'community') {
|
||||
this.allOptions = [{
|
||||
id: this.id,
|
||||
label: 'community.all-lists.head',
|
||||
routerLink: getCommunityPageRoute(this.id)
|
||||
routerLink: getCommunityPageRoute(this.id),
|
||||
}, ...this.allOptions];
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.currentOptionId$ = this.route.params.pipe(
|
||||
map((params: Params) => params.id)
|
||||
map((params: Params) => params.id),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user