Skip to content

Commit

Permalink
[BUGFIX] Crash de l’appli lorsqu’on rafraîchit sur détail acquis/épre…
Browse files Browse the repository at this point in the history
…uve (PIX-14085)

 #756
  • Loading branch information
pix-service-auto-merge authored Sep 6, 2024
2 parents ff8d2e5 + 81c494b commit caa01bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default class SingleController extends Controller {
@service currentData;
@service filePath;
@service intl;
defaultSaveChangelog = this.intl.t('prototype.changelog.update-message');
@service loader;
@service notify;
@service router;
Expand Down Expand Up @@ -121,6 +120,10 @@ export default class SingleController extends Controller {
return this.challenge.get('isPrototype') ? 'authenticated.competence.prototypes.localized' : 'authenticated.competence.prototypes.single.alternatives.localized';
}

get defaultSaveChangelog() {
return this.intl.t('prototype.changelog.update-message');
}

@action
getLocalizedChallengeLinkModels(localizedChallenge) {
return [this.challenge.get('id'), localizedChallenge.get('id')];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default class SingleController extends Controller {

wasMaximized = false;
changelogCallback = null;
defaultSaveChangelog = this.intl.t('skill.changelog.update-message');

@tracked edition = false;
@tracked displaySelectLocation = false;
Expand Down Expand Up @@ -71,6 +70,10 @@ export default class SingleController extends Controller {
return `${this.config.airtableUrl}${this.config.airtableBase}/${this.config.tableSkills}/${this.skill.id}`;
}

get defaultSaveChangelog() {
return this.intl.t('skill.changelog.update-message');
}

@action
maximize() {
this.parentController.maximizeLeft(true);
Expand Down

0 comments on commit caa01bd

Please sign in to comment.