Auto-mount
This commit is contained in:
@@ -178,7 +178,8 @@
|
||||
document.body.innerHTML = '';
|
||||
document.body.appendChild(div);
|
||||
div.classList.remove('hidden-element');
|
||||
}
|
||||
},
|
||||
notifyDriveMounting: _notifyDriveMounting
|
||||
};
|
||||
})();
|
||||
|
||||
@@ -301,6 +302,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
function _notifyDriveMounting(mountLocation) {
|
||||
const mountButton = document.getElementById('ID_MountButton');
|
||||
const mountSelect = document.getElementById('ID_MountDrives');
|
||||
mountButton.innerText = "Unmount";
|
||||
mountButton.onclick = _mountHandler;
|
||||
mountSelect['allow_change'] = false;
|
||||
mountSelect.disabled = true;
|
||||
mountSelect.value = mountLocation;
|
||||
}
|
||||
|
||||
function _notifyDriveUnmounted() {
|
||||
const mountButton = document.getElementById('ID_MountButton');
|
||||
const mountSelect = document.getElementById('ID_MountDrives');
|
||||
|
Reference in New Issue
Block a user