Skip to content

Commit

Permalink
https://trello.com/c/tBxKi5vE/978-aanpassen-sbu-microcredential
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 17, 2024
1 parent 849603c commit 407f499
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/extensions/badges/StudyLoad.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
let minValue = 1;
onMount(() => {
minValue = badgeClassType === badgeClassTypes.MICRO_CREDENTIAL ? 240 : 1;
minValue = badgeClassType === badgeClassTypes.MICRO_CREDENTIAL ? 80 : 1;
});
const decrement = () => {
studyLoad = Math.max((studyLoad || 0) - 1, minValue);
studyLoad = Math.max((studyLoad || 0) - (badgeClassType === badgeClassTypes.MICRO_CREDENTIAL ? 80 : 1), minValue);
}
const increment = () => {
studyLoad = (studyLoad || 0) + 1;
studyLoad = (studyLoad || 0) + (badgeClassType === badgeClassTypes.MICRO_CREDENTIAL ? 80 : 1);
}
const onInput = e => {
Expand Down
2 changes: 1 addition & 1 deletion src/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ I18n.translations.en = {
ectsMicroCredentials:
"Whole and half points only. Valid value between 3 and 30 points.",
studyLoadMICRO_CREDENTIAL:
"Whole hours only. Minimal value is 240 hours.",
"Whole hours only. Minimal value is 80 hours.",
studyLoadREGULAR: "Whole hours only.",
studyLoadEXTRA_CURRICULAR: "Optional. Whole hours only.",
timeInvestment:
Expand Down
2 changes: 1 addition & 1 deletion src/locale/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ I18n.translations.nl = {
ectsMicroCredentials:
"Alleen hele en halve punten. Valide waarde is tussen de 3 en 30 punten.",
studyLoadMICRO_CREDENTIAL:
"Alleen hele uren. De minimum waarde is 240 uur.",
"Alleen hele uren. De minimum waarde is 80 uur.",
studyLoadREGULAR: "Alleen hele uren.",
studyLoadEXTRA_CURRICULAR: "Optioneel. Alleen hele uren.",
timeInvestment:
Expand Down

0 comments on commit 407f499

Please sign in to comment.