-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TECH] Migration de composants en GJS (PIX-15766)
- Loading branch information
Showing
7 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<header class="learner-header"> | ||
<div class="learner-header__breadcrumb"> | ||
{{yield to="breadcrumb"}} | ||
</div> | ||
<div class="learner-header__informations-line"> | ||
<h1 class="learner-header__title">{{yield to="title"}}</h1> | ||
{{yield to="info"}} | ||
</div> | ||
</header> | ||
</template> |
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
orga/app/components/organization-participant/action-bar.gjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import PixButton from '@1024pix/pix-ui/components/pix-button'; | ||
import { t } from 'ember-intl'; | ||
|
||
import ActionBar from '../ui/action-bar'; | ||
|
||
<template> | ||
<ActionBar> | ||
<:information> | ||
{{t "pages.organization-participants.action-bar.information" count=@count}} | ||
</:information> | ||
<:actions> | ||
<PixButton @triggerAction={{@openDeletionModal}} type="button" @variant="error"> | ||
{{t "pages.organization-participants.action-bar.delete-button"}} | ||
</PixButton> | ||
</:actions> | ||
</ActionBar> | ||
</template> |
10 changes: 0 additions & 10 deletions
10
orga/app/components/organization-participant/action-bar.hbs
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
orga/app/components/organization-participant/no-participant-panel.gjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { LinkTo } from '@ember/routing'; | ||
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> | ||
} |
13 changes: 0 additions & 13 deletions
13
orga/app/components/organization-participant/no-participant-panel.hbs
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
orga/app/components/organization-participant/no-participant-panel.js
This file was deleted.
Oops, something went wrong.