Skip to content
Merged
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
10 changes: 9 additions & 1 deletion emhttp/plugins/dynamix/BootParameters.page
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ $csrf_token = $var['csrf_token'] ?? '';
<!-- Config Preview -->
<div id="config-preview">
<div class="config-header">
<strong>_(Current Syslinux Configuration)_:</strong>
<strong id="current-config-label">_(Current Bootloader Configuration)_:</strong>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
<div class="view-toggle-wrapper">
<input type="checkbox" id="syslinux-view-toggle" class="switch narrow">
</div>
Expand Down Expand Up @@ -1996,6 +1996,14 @@ function loadCurrentConfig() {
// Set bootloader type for rendering and validation
bootloaderType = (config.bootloader_type || 'syslinux').toLowerCase();

// Update config header label to match active bootloader
const configLabel = document.getElementById('current-config-label');
if (configLabel) {
configLabel.textContent = (bootloaderType === 'grub')
? _('Current GRUB Configuration:')
: _('Current Syslinux Configuration:');
}

// Display current configuration (full syslinux.cfg file)
if (config.full_config) {
document.getElementById('config-content').textContent = config.full_config;
Expand Down
Loading