Skip to content

Commit 373651a

Browse files
authored
Merge pull request #2635 from SimonFair/ZFS-reserved-name-check-
Fix title for bootloader config.
2 parents aba2552 + 76537e2 commit 373651a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

emhttp/plugins/dynamix/BootParameters.page

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ $csrf_token = $var['csrf_token'] ?? '';
337337
<!-- Config Preview -->
338338
<div id="config-preview">
339339
<div class="config-header">
340-
<strong>_(Current Syslinux Configuration)_:</strong>
340+
<strong id="current-config-label">_(Current Bootloader Configuration)_:</strong>
341341
<div class="view-toggle-wrapper">
342342
<input type="checkbox" id="syslinux-view-toggle" class="switch narrow">
343343
</div>
@@ -2095,6 +2095,14 @@ function loadCurrentConfig() {
20952095
// Set bootloader type for rendering and validation
20962096
bootloaderType = (config.bootloader_type || 'syslinux').toLowerCase();
20972097

2098+
// Update config header label to match active bootloader
2099+
const configLabel = document.getElementById('current-config-label');
2100+
if (configLabel) {
2101+
configLabel.textContent = (bootloaderType === 'grub')
2102+
? _('Current GRUB Configuration:')
2103+
: _('Current Syslinux Configuration:');
2104+
}
2105+
20982106
// Display current configuration (full syslinux.cfg file)
20992107
if (config.full_config) {
21002108
document.getElementById('config-content').textContent = config.full_config;

0 commit comments

Comments
 (0)