File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 10921092 "remote_input_ip" : " IP:" ,
10931093 "remote_input_label" : " Source Selection" ,
10941094 "remote_input_label_autoselect" : " Auto Selection" ,
1095+ "remote_input_no_sources" : " No sources available" ,
10951096 "remote_input_origin" : " Origin" ,
10961097 "remote_input_owner" : " Type" ,
10971098 "remote_input_priority" : " Priority" ,
Original file line number Diff line number Diff line change @@ -124,13 +124,14 @@ $(document).ready(function () {
124124 // Update input select options based on priorities
125125 function updateInputSelect ( ) {
126126 // Clear existing elements
127- $ ( '.sstbody' ) . empty ( ) ;
127+ $ ( '.sstbody' ) . empty ( ) . html ( '' ) ;
128128
129129 const prios = window . serverInfo . priorities ;
130130 let clearAll = false ;
131131
132132 if ( prios . length === 0 ) {
133- $ ( '.sstbody' ) . append ( '<tr><td colspan="4" class="text-center text-muted">No sources available</td></tr>' ) ;
133+ $ ( '.sstbody' ) . append ( `<tr><td colspan="4" class="text-center text-muted">${ $ . i18n ( 'remote_input_no_sources' ) } </td></tr>` ) ;
134+ $ ( '#auto_btn' ) . empty ( ) ;
134135 return ;
135136 }
136137
You can’t perform that action at this time.
0 commit comments