diff --git a/mon-pix/app/components/campaigns/assessment/results/evaluation-results-hero/index.gjs b/mon-pix/app/components/campaigns/assessment/results/evaluation-results-hero/index.gjs index 4f72b37fef2..428ea06b913 100644 --- a/mon-pix/app/components/campaigns/assessment/results/evaluation-results-hero/index.gjs +++ b/mon-pix/app/components/campaigns/assessment/results/evaluation-results-hero/index.gjs @@ -7,7 +7,6 @@ import { service } from '@ember/service'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import { t } from 'ember-intl'; -import ENV from 'mon-pix/config/environment'; import MarkdownToHtml from '../../../../markdown-to-html'; import AcquiredBadges from './acquired-badges'; @@ -24,10 +23,6 @@ export default class EvaluationResultsHero extends Component { @tracked isImproveButtonLoading = false; @tracked isShareResultsLoading = false; - get isAutonomousCourse() { - return this.args.campaign.organizationId === ENV.APP.AUTONOMOUS_COURSES_ORGANIZATION_ID; - } - get masteryRatePercentage() { return Math.round(this.args.campaignParticipationResult.masteryRate * 100); } @@ -46,9 +41,14 @@ export default class EvaluationResultsHero extends Component { }; } + get isSharableCampaign() { + const isSimplifiedAccessCampaign = this.args.campaign.isAutonomousCourse || this.args.campaign.isForAbsoluteNovice; + return !isSimplifiedAccessCampaign; + } + get showCustomOrganizationBlock() { const hasCustomContent = this.args.campaign.customResultPageText || this.args.campaign.hasCustomResultPageButton; - return hasCustomContent && this.args.campaignParticipationResult.isShared; + return hasCustomContent && (!this.isSharableCampaign || this.args.campaignParticipationResult.isShared); } @action @@ -124,57 +124,43 @@ export default class EvaluationResultsHero extends Component { {{/if}} +
+ {{t "pages.skill-review.hero.explanations.trainings"}} +
+ {{/if}} + {{else}}- {{t "pages.skill-review.hero.explanations.trainings"}} + {{t "pages.skill-review.hero.explanations.send-results"}}
{{/if}} - {{else}} - {{#unless this.isAutonomousCourse}} + {{#if @campaignParticipationResult.canImprove}}- {{t "pages.skill-review.hero.explanations.send-results"}} + {{t "pages.skill-review.hero.explanations.improve"}}
- {{/unless}} - {{/if}} - {{#if @campaignParticipationResult.canImprove}} -- {{t "pages.skill-review.hero.explanations.improve"}} -
+ {{/if}} {{/if}} +