Fix disabled state of new benchmark buttons

This commit is contained in:
Raymond Hill 2024-03-03 13:46:29 -05:00
parent 43e0e15125
commit 270040d466
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -187,6 +187,7 @@ vAPI.messaging.send('dashboard', {
dom.attr(button, 'disabled', null);
});
});
dom.attr('#cfe-benchmark', 'disabled', null);
dom.on('#cfe-benchmark', 'click', ev => {
const button = ev.target;
dom.attr(button, 'disabled', '');
@ -197,6 +198,7 @@ vAPI.messaging.send('dashboard', {
dom.attr(button, 'disabled', null);
});
});
dom.attr('#sfe-benchmark', 'disabled', null);
dom.on('#sfe-benchmark', 'click', ev => {
const button = ev.target;
dom.attr(button, 'disabled', '');