File tree Expand file tree Collapse file tree
custom_components/orphan_cleaner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747PANEL_ICON = "mdi:broom"
4848
4949# Versione corrente (usata per cache-busting)
50- VERSION = "2.4.7 "
50+ VERSION = "2.4.8 "
Original file line number Diff line number Diff line change @@ -707,9 +707,8 @@ <h2>Confirm deletion</h2>
707707 addLog ( '✓ Deleted: ' + id , 'ok' ) ;
708708 } ) ;
709709 ( data . failed || [ ] ) . forEach ( id => addLog ( '✗ Failed: ' + id , 'err' ) ) ;
710- document . getElementById ( 's-orphan' ) . textContent = allOrphans . length ;
711- document . getElementById ( 's-heur' ) . textContent = allOrphans . filter ( o => o . method === 'heuristic' ) . length ;
712- renderTable ( filteredOrphans ( ) ) ;
710+ document . getElementById ( 's-heur' ) . textContent = allOrphans . filter ( o => o . method === 'heuristic' ) . length ;
711+ applyIgnore ( ) ;
713712 updateSelCount ( ) ;
714713 addLog ( 'Done: ' + data . deleted_count + ' deleted, ' + data . failed_count + ' failed.' ,
715714 data . failed_count > 0 ? 'warn' : 'ok' ) ;
@@ -800,6 +799,13 @@ <h2>Confirm deletion</h2>
800799document . getElementById ( 'ignore-input' ) . addEventListener ( 'keydown' , e => { if ( e . key === 'Enter' ) ignoreAdd ( ) ; } ) ;
801800document . getElementById ( 'saved-ig-input' ) . addEventListener ( 'keydown' , e => { if ( e . key === 'Enter' ) savedIgAdd ( ) ; } ) ;
802801loadSavedIgnoreList ( ) ;
802+ // Reset contatori a — ad ogni caricamento pagina
803+ [ 's-total' , 's-orphan' , 's-heur' , 's-sel' ] . forEach ( id => {
804+ document . getElementById ( id ) . textContent = '—' ;
805+ } ) ;
806+ document . getElementById ( 's-orphan' ) . closest ( '.stat' ) . className = 'stat' ;
807+ document . getElementById ( 's-heur' ) . closest ( '.stat' ) . className = 'stat' ;
808+ document . getElementById ( 's-sel' ) . closest ( '.stat' ) . className = 'stat' ;
803809</ script >
804810</ body >
805811</ html >
Original file line number Diff line number Diff line change 1313 "iot_class" : " local_push" ,
1414 "issue_tracker" : " https://github.com/Franz646/orphan-cleaner/issues" ,
1515 "requirements" : [],
16- "version" : " 2.4.7 "
16+ "version" : " 2.4.8 "
1717}
You can’t perform that action at this time.
0 commit comments