Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/dialogs/limits/limitsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function LimitsChart({ limitsGroupFormName, previousPermanentLimi
// threshold with biggest tempo and biggest value than the previous threshold
// more than one threshold without value
const isPermanentLimit =
(item.name === intl.formatMessage({ id: 'IST' }) && permanentLimit) ||
(item.name === intl.formatMessage({ id: 'permanentLimit' }) && permanentLimit) ||
(!permanentLimit && !item.acceptableDuration);

const permanentLimitValue = permanentLimit || maxValuePermanentLimit;
Expand Down Expand Up @@ -86,7 +86,7 @@ export default function LimitsChart({ limitsGroupFormName, previousPermanentLimi

if (permanentLimit) {
thresholds.push({
name: intl.formatMessage({ id: 'IST' }),
name: intl.formatMessage({ id: 'permanentLimit' }),
value: permanentLimit ? +permanentLimit : permanentLimit,
acceptableDuration: null,
});
Expand Down Expand Up @@ -135,7 +135,7 @@ export default function LimitsChart({ limitsGroupFormName, previousPermanentLimi
return thresholds.reduce<{ series: BarSeriesType[]; ticks: Ticks[] }>(
(acc, item, index) => {
const isPermanentLimit =
(item.name === intl.formatMessage({ id: 'IST' }) && permanentLimit) ||
(item.name === intl.formatMessage({ id: 'permanentLimit' }) && permanentLimit) ||
(!permanentLimit && !item.acceptableDuration && item.value === maxValuePermanentLimit);
const difference = item.value ? item.value - previousSum : undefined;

Expand Down
16 changes: 8 additions & 8 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"OverloadedEquipment": "Equipment",
"OverloadedEquipmentBus": "Bus",
"OverloadedEquipmentVoltageLevel": "Voltage level",
"PermanentLimitName": "IST",
"PermanentLimitName": "PATL",
"LimitAcceptableDuration": "Duration",
"Overload": "Overload",
"ErrFetchViolationsMsg": "An error occurred while getting constraint violations",
Expand Down Expand Up @@ -640,7 +640,7 @@
"TabularLimitSets": "Limit sets",
"amountTemporaryLimits": "Number of temporary limits",
"amountTemporaryLimitsError": "Limits number between 1 and 50",
"permanentLimit": "Permanent current limit",
"permanentLimit": "PATL",
"acceptableDuration": "Duration (s)",
"value": "Value (A)",
"side": "Side",
Expand Down Expand Up @@ -901,7 +901,7 @@
"DeleteVoltageLevelOnLineError": "Error while deleting a voltage level on a line",
"DeleteAttachingLineError": "Error while deleting an attaching line",
"GenerationDispatchError": "Error while creating a generation dispatch",
"PermanentCurrentLimitText": "Permanent current limit",
"PermanentCurrentLimitText": "PATL",
"permanentCurrentLimitMustBeGreaterThanZero": "The permanent current limit value must be greater than 0",
"permanentCurrentLimitMandatory": "A permanent limit has to be set if the limit set contains temporary current limits",
"qMaxAtNominalVMustBeGreaterThanZero": "The Qmax available at nominal voltage value must be greater than 0",
Expand All @@ -913,8 +913,8 @@
"maxPMustBeGreaterOrEqualToZero": "The maximum active power value must be greater than 0",
"activePowerSetpointMinValueError": "The active power value must be greater than 0",
"activePowerSetpointMaxValueError": "The active power value must be less than the maximum active power value",
"PermanentCurrentLimitText1": "Permanent current limit 1",
"PermanentCurrentLimitText2": "Permanent current limit 2",
"PermanentCurrentLimitText1": "PATL 1",
"PermanentCurrentLimitText2": "PATL 2",
"SelectedOperationalLimitGroup": "Active limit set",
"SelectedOperationalLimitGroups": "Active limit sets",
"Applicability": "Applicability",
Expand Down Expand Up @@ -1182,7 +1182,7 @@
"lineTypes.screen": "Screen",
"lineTypes.currentLimits.limitSets": "Limit sets",
"lineTypes.currentLimits.limitSet": "Limit set",
"lineTypes.currentLimits.Permanent": "Permanent current limit [A]",
"lineTypes.currentLimits.Permanent": "PATL [A]",
"lineTypes.currentLimits.Temporary": "Temporary current limit [A] ",
"aerialAreas": "Area",
"aerialTemperatures": "Temperature",
Expand Down Expand Up @@ -1345,10 +1345,10 @@
"sensitivityThreshold": "Threshold",
"generatorsCappingSensitivityValue": "Generators capping sensitivity threshold value",
"MonitoredBranchesFilter": "Filter",
"istN": "N IST",
"istN": "N PATL",
"limitNameN": "N limit",
"coeffN": "N coeff (%)",
"istNm1": "N-1 IST",
"istNm1": "N-1 PATL",
"limitNameNm1": "N-1 limit",
"coeffNm1": "N-1 coeff (%)",
"generateStagesSelection": "Generated stages to simulate",
Expand Down
Loading