usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.49k stars 582 forks source link

[UX improvement] Backup+Restore buttons should be disabled after pressing on it #1100

Closed jcn50 closed 11 months ago

jcn50 commented 11 months ago

Buttons to: -Backup $URL:8090/backup/backupSite -Restore $URL:8090/backup/restoreSite should be disabled for 5 seconds once pressed on it to avoid duplicate/parallel execution.

$("#myButton").attr("temp_disable", "disabled");
window.setTimeout(function() { $("#myButton").attr("temp_disable", ""); }, 5000);
usmannasir commented 11 months ago

@hassanhashmey can you take care of this ?

hassanhashmey commented 11 months ago

Okay

jcn50 commented 11 months ago

Thanks Guys//

usmannasir commented 11 months ago

Fixed with this commit: https://github.com/usmannasir/cyberpanel/commit/26d2fbf5bfa4d59523d49583119d6ab08e4bdaf0