Skip to content

Commit

Permalink
migrate organization-participant no-participant-panel to gjs
Browse files Browse the repository at this point in the history
  • Loading branch information
machestla committed Dec 18, 2024
1 parent da22176 commit 4a80ab2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import LinkTo from '@ember/helper';
import { service } from '@ember/service';
import Component from '@glimmer/component';
import { t } from 'ember-intl';

export default class List extends Component {
@service currentUser;

get isNotManagingStudents() {
return !this.currentUser.isSCOManagingStudents && !this.currentUser.isSUPManagingStudents;
}

<template>
<section class="no-participant-panel panel">
<img src="{{this.rootURL}}/images/empty-state-participants.svg" alt="" role="none" />
<p class="content-text">
{{t "pages.organization-participants.empty-state.message"}}
{{#if this.isNotManagingStudents}}
<br />
{{t "pages.organization-participants.empty-state.call-to-action"}}
<LinkTo @route="authenticated.campaigns.list.my-campaigns" class="link link--underlined">
{{t "pages.organization-participants.empty-state.action"}}
</LinkTo>
{{/if}}
</p>
</section>
</template>
}

This file was deleted.

This file was deleted.

0 comments on commit 4a80ab2

Please sign in to comment.