diff --git a/app/institutions/dashboard/-components/institutional-users-list/component.ts b/app/institutions/dashboard/-components/institutional-users-list/component.ts index 9c879700dd..2268909b0c 100644 --- a/app/institutions/dashboard/-components/institutional-users-list/component.ts +++ b/app/institutions/dashboard/-components/institutional-users-list/component.ts @@ -1,3 +1,4 @@ +import { task } from 'ember-concurrency'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; @@ -10,6 +11,7 @@ import InstitutionModel from 'ember-osf-web/models/institution'; import InstitutionDepartmentsModel from 'ember-osf-web/models/institution-department'; import Analytics from 'ember-osf-web/services/analytics'; import { RelationshipWithLinks } from 'osf-api'; +import {MessageTypeChoices} from 'ember-osf-web/models/user-message'; interface Column { key: string; @@ -27,6 +29,8 @@ interface InstitutionalUsersListArgs { export default class InstitutionalUsersList extends Component { @service analytics!: Analytics; @service intl!: Intl; + @service store; + @service currentUser!: CurrentUser; institution?: InstitutionModel; @@ -37,6 +41,12 @@ export default class InstitutionalUsersList extends Component {{institutionalUser.userName}} + {{else if (eq column.type 'osf_link')}} {{institutionalUser.userGuid}} @@ -204,4 +212,50 @@ {{t 'institutions.dashboard.users_list.empty'}} + + + {{t 'institutions.dashboard.send_message_modal.title'}} + + +
+ +