@@ -16,6 +16,7 @@ let saveTimeoutId = null;
1616
1717// DOM Elements
1818const profileSelect = document . getElementById ( 'profileSelect' ) ;
19+ const currentProfileLabel = document . getElementById ( 'currentProfileLabel' ) ;
1920const buttonCardsList = document . getElementById ( 'buttonCardsList' ) ;
2021const consoleOutput = document . getElementById ( 'console' ) ;
2122const saveStatus = document . getElementById ( 'saveStatus' ) ;
@@ -193,6 +194,7 @@ document.addEventListener('DOMContentLoaded', () => {
193194 copyProfileContainer . style . display = 'none' ;
194195 deleteProfileButton . style . display = 'none' ; // Hide delete button during add
195196 profileSelect . disabled = true ; // Lock profile selector
197+ currentProfileLabel . style . display = 'inline-block' ;
196198 } ) ;
197199
198200 // Copy Profile Button Click
@@ -203,6 +205,7 @@ document.addEventListener('DOMContentLoaded', () => {
203205 addProfileContainer . style . display = 'none' ;
204206 deleteProfileButton . style . display = 'none' ; // Hide delete button during copy
205207 profileSelect . disabled = true ; // Lock profile selector
208+ currentProfileLabel . style . display = 'inline-block' ;
206209 } ) ;
207210
208211 // Save Add Profile Button Click
@@ -227,6 +230,7 @@ document.addEventListener('DOMContentLoaded', () => {
227230 copyProfileButton . style . display = 'inline-block' ;
228231 deleteProfileButton . style . display = 'inline-block' ; // Show delete button after add
229232 profileSelect . disabled = false ; // Unlock profile selector
233+ currentProfileLabel . style . display = 'none' ;
230234 } ) ;
231235
232236 // Save Copy Profile Button Click
@@ -251,6 +255,7 @@ document.addEventListener('DOMContentLoaded', () => {
251255 addProfileButton . style . display = 'inline-block' ;
252256 deleteProfileButton . style . display = 'inline-block' ; // Show delete button after copy
253257 profileSelect . disabled = false ; // Unlock profile selector
258+ currentProfileLabel . style . display = 'none' ;
254259 } ) ;
255260
256261 // Delete Profile Button Click
@@ -263,6 +268,7 @@ document.addEventListener('DOMContentLoaded', () => {
263268 copyProfileButton . style . display = 'inline-block' ;
264269 deleteProfileButton . style . display = 'inline-block' ; // Show delete button
265270 profileSelect . disabled = false ; // Unlock profile selector
271+ currentProfileLabel . style . display = 'none' ;
266272 } ) ;
267273
268274 // Cancel Copy Profile Button Click
@@ -272,6 +278,7 @@ document.addEventListener('DOMContentLoaded', () => {
272278 copyProfileButton . style . display = 'inline-block' ;
273279 deleteProfileButton . style . display = 'inline-block' ; // Show delete button
274280 profileSelect . disabled = false ; // Unlock profile selector
281+ currentProfileLabel . style . display = 'none' ;
275282 } ) ;
276283
277284 // Button management
0 commit comments