mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-20 04:26:18 +00:00
Update AppImage
This commit is contained in:
@@ -65,8 +65,14 @@ export function Settings() {
|
||||
}, [])
|
||||
|
||||
const changeNetworkUnit = (unit: string) => {
|
||||
localStorage.setItem("proxmenux-network-unit", unit);
|
||||
const settings = { networkUnit: unit }
|
||||
localStorage.setItem('unitsSettings', JSON.stringify(settings))
|
||||
localStorage.setItem("proxmenux-network-unit", unit); // Keep legacy for backwards compatibility
|
||||
setNetworkUnitSettings(unit);
|
||||
|
||||
// Dispatch custom event to notify other components
|
||||
window.dispatchEvent(new Event('unitsSettingsChanged'))
|
||||
window.dispatchEvent(new Event('storage'))
|
||||
};
|
||||
|
||||
const getUnitsSettings = () => {
|
||||
|
||||
Reference in New Issue
Block a user