File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments