-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TECH] Ajouter un sous-composant d'affichage de l'état d'une certification (PIX-16534). #11395
[TECH] Ajouter un sous-composant d'affichage de l'état d'une certification (PIX-16534). #11395
Conversation
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
54914fd
to
38d2886
Compare
admin/app/components/certifications/certification/informations.gjs
Outdated
Show resolved
Hide resolved
{{#if @certification.isPublished}} | ||
<PixTag @color="success">Publiée</PixTag> | ||
{{/if}} | ||
{{#if @certification.isCertificationCancelled}} | ||
<PixTag @color="error">Annulée</PixTag> | ||
{{/if}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳 👍 et comme le tag annulée disparaîtra soon, encore moins d'intérêt à garder le CertificationInfoTag
admin/tests/integration/components/certifications/certification/informations/state-test.gjs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testé func !
38d2886
to
d042f5a
Compare
🥞 Problème
Dans l'objectif d'alléger le template
admin/app/templates/authenticated/certifications/certification/informations.hbs
, il est nécessaire de réussir à alléger son unique composantadmin/app/components/certifications/certification/informations.gjs
.🥓 Proposition
Commencer à faire de la composition en créant un sous-composant qui gérera l'affichage de la partie "État".
🧃 Remarques
admin/app/components/certifications/certification/informations.gjs
.info-tag
est utilisé uniquement dans la card "État", j'ai décidé de l'incorporer directement dans ce nouveau sous-composant.😋 Pour tester