@@ -29,7 +29,7 @@ function addBackendToHtml(backend, disable, spot = null) {
2929 togglerSpan . className = 'form-check form-switch display-inline-block' ;
3030 let toggleSwitch = document . createElement ( 'input' ) ;
3131 toggleSwitch . type = 'checkbox' ;
32- toggleSwitch . className = 'backend-toggle-switch form-check-input' ;
32+ toggleSwitch . className = 'form-check-input backend-toggle-switch ' ;
3333 toggleSwitch . title = 'Enable/Disable backend' ;
3434 toggleSwitch . checked = backend . enabled ;
3535 toggleSwitch . addEventListener ( 'change' , ( ) => {
@@ -107,13 +107,15 @@ function addBackendToHtml(backend, disable, spot = null) {
107107 saveButton . style . display = 'inline-block' ;
108108 editButton . disabled = true ;
109109 actualCardTitle . contentEditable = true ;
110+ actualCardTitle . classList . add ( 'backend-title-editable' ) ;
110111 for ( let entry of cardBody . querySelectorAll ( '[data-name]' ) ) {
111112 entry . disabled = false ;
112113 }
113114 } ) ;
114115 saveButton . addEventListener ( 'click' , ( ) => {
115116 saveButton . style . display = 'none' ;
116117 actualCardTitle . contentEditable = false ;
118+ actualCardTitle . classList . remove ( 'backend-title-editable' ) ;
117119 for ( let entry of cardBody . querySelectorAll ( '[data-name]' ) ) {
118120 let name = entry . dataset . name ;
119121 let value = entry . type == 'checkbox' ? entry . checked : entry . value ;
0 commit comments