Refactor feature handling, update format in Features.json

This commit is contained in:
Raphire
2026-04-01 21:33:24 +02:00
parent 105198e396
commit c79c05f286
9 changed files with 410 additions and 415 deletions

View File

@@ -70,17 +70,12 @@ function Show-RevertSettingsModal {
$undoFeature = GetUndoFeatureForParam -paramKey $setting.Name
$label = $setting.Name
if ($feature -and $feature.Label) {
if ($feature.Action) {
$label = "$($feature.Action) $($feature.Label)"
}
else {
$label = $feature.Label
}
if ($feature -and $feature.Action) {
$label = $feature.Action
}
$undoLabel = if ($undoFeature -and $undoFeature.Label) {
"$($undoFeature.UndoAction) $($undoFeature.Label)"
$undoLabel = if ($undoFeature -and $undoFeature.UndoAction) {
$undoFeature.UndoAction
} else {
'No revert action available'
}