Skip to content

Commit

Permalink
[TECH] Migration de composants en GJS (PIX-15766)
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Dec 19, 2024
2 parents d8e199b + 0998ee5 commit 29e69de
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 42 deletions.
11 changes: 11 additions & 0 deletions orga/app/components/learner/header.gjs
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>
9 changes: 0 additions & 9 deletions orga/app/components/learner/header.hbs

This file was deleted.

17 changes: 17 additions & 0 deletions orga/app/components/organization-participant/action-bar.gjs
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 orga/app/components/organization-participant/action-bar.hbs

This file was deleted.

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>
}

This file was deleted.

This file was deleted.

0 comments on commit 29e69de

Please sign in to comment.