diff --git a/app/preprints/detail/controller.ts b/app/preprints/detail/controller.ts index 21ec1e556e..e9e146a7fd 100644 --- a/app/preprints/detail/controller.ts +++ b/app/preprints/detail/controller.ts @@ -115,7 +115,7 @@ export default class PrePrintsDetailController extends Controller { } authors(): ContributorModel[] { - return this.model.contributors; + return this.model.preprint.contributors; } fullLicenseText(): string { diff --git a/app/preprints/detail/route.ts b/app/preprints/detail/route.ts index 29080402b4..22de66e39f 100644 --- a/app/preprints/detail/route.ts +++ b/app/preprints/detail/route.ts @@ -75,7 +75,6 @@ export default class PreprintsDetail extends Route { /* export default Route.extend({ - currentUser: service(), features: service(), model(params) { const opts = { @@ -88,15 +87,6 @@ export default Route.extend({ }, }; - this.get('currentUser').authenticatedAJAX(opts).then((res) => { - if (Array.isArray(res.meta.active_flags)) { - this.get('features').setup(res.meta.active_flags.reduce(function(acc, flag) { - acc[flag] = true; - return acc; - }, {})); - } - }); - return this.store.findRecord( 'preprint', params.preprint_id, { diff --git a/app/preprints/detail/template.hbs b/app/preprints/detail/template.hbs index edb9d071b0..b791eca490 100644 --- a/app/preprints/detail/template.hbs +++ b/app/preprints/detail/template.hbs @@ -1,6 +1,4 @@ -{{page-title this.model.preprint.title replace=true}} -{{ this.theme.provider.id}} -{{ this.theme.provider.brand.primaryColor}} +{{page-title this.model.preprint.title replace=false}}