Skip to content

Commit

Permalink
Update projects/registrations/preprints table to have title link to p…
Browse files Browse the repository at this point in the history
…roject
  • Loading branch information
futa-ikeda committed Nov 19, 2024
1 parent fbc17d9 commit c49fa3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/institutions/dashboard/preprints/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default class InstitutionDashboardPreprints extends Controller {
columns: ObjectListColumn[] = [
{ // Title
name: this.intl.t('institutions.dashboard.object-list.table-headers.title'),
getValue: searchResult => searchResult.displayTitle,
type: 'link',
getHref: searchResult => searchResult.indexCard.get('osfIdentifier'),
getLinkText: searchResult => searchResult.displayTitle,
},
{ // Link
name: this.intl.t('institutions.dashboard.object-list.table-headers.link'),
Expand Down
4 changes: 3 additions & 1 deletion app/institutions/dashboard/projects/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default class InstitutionDashboardProjects extends Controller {
columns: ObjectListColumn[] = [
{ // Title
name: this.intl.t('institutions.dashboard.object-list.table-headers.title'),
getValue: searchResult => searchResult.displayTitle,
type: 'link',
getHref: searchResult => searchResult.indexCard.get('osfIdentifier'),
getLinkText: searchResult => searchResult.displayTitle,
},
{ // Link
name: this.intl.t('institutions.dashboard.object-list.table-headers.link'),
Expand Down
4 changes: 3 additions & 1 deletion app/institutions/dashboard/registrations/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default class InstitutionDashboardRegistrations extends Controller {
columns: ObjectListColumn[] = [
{ // Title
name: this.intl.t('institutions.dashboard.object-list.table-headers.title'),
getValue: searchResult => searchResult.displayTitle,
type: 'link',
getHref: searchResult => searchResult.indexCard.get('osfIdentifier'),
getLinkText: searchResult => searchResult.displayTitle,
},
{ // Link
name: this.intl.t('institutions.dashboard.object-list.table-headers.link'),
Expand Down

0 comments on commit c49fa3c

Please sign in to comment.