1
0

Using "type" value to determine path & innerHTML of first button

This commit is contained in:
lhenze
2019-08-23 17:59:08 -04:00
parent 86d3389438
commit 72c382d5c3
5 changed files with 13 additions and 20 deletions

View File

@@ -18,19 +18,6 @@ export class ComcolPageBrowseByComponent implements OnInit {
@Input() id: string;
@Input() contentType: string;
/**
* getPathfromType
*/
getPathfromType(t) {
if (t === "collection") {
t = "/collections/";
} else if (t === "community") {
t = "/communities/";
} else {
t = "/";
}
return t;
}
/**
* List of currently active browse configurations
@@ -42,7 +29,6 @@ export class ComcolPageBrowseByComponent implements OnInit {
ngOnInit(): void {
this.types = this.config.browseBy.types;
this.contentTypePath = this.getPathfromType(this.contentType) ;
}
}