Skip to content

Commit

Permalink
Code consistency: we have statuses with Caps, so lets change disabled…
Browse files Browse the repository at this point in the history
… -> Disabled
  • Loading branch information
igorpecovnik committed Oct 6, 2024
1 parent f347638 commit 48c095c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/armbian-configng/config.ng.functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ parse_menu_items() {
# If the condition field is empty or null, add the menu item to the menu
options+=("$id" " - $description ")
fi
done < <(echo "$json_data" | jq -r '.menu[] | '${parent_id:+".. | objects | select(.id==\"$parent_id\") | .sub[]? |"}' select(.status != "disabled") | "\(.id)\n\(.description)\n\(.condition)"' || exit 1)
done < <(echo "$json_data" | jq -r '.menu[] | '${parent_id:+".. | objects | select(.id==\"$parent_id\") | .sub[]? |"}' select(.status != "Disabled") | "\(.id)\n\(.description)\n\(.condition)"' || exit 1)
}

module_options+=(
Expand Down
6 changes: 3 additions & 3 deletions lib/armbian-configng/config.ng.jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
"command": [
"get_user_continue \"This is only a frontend test\" process_input"
],
"status": "disabled",
"status": "Disabled",
"author": ""
}
]
Expand Down Expand Up @@ -991,12 +991,12 @@
"command": [
"show_message <<< see_use"
],
"status": "disabled",
"status": "Disabled",
"doc_link": "",
"src_reference": "",
"author": ""
}
]
}
]
}
}

0 comments on commit 48c095c

Please sign in to comment.