Skip to content

Commit

Permalink
Add back the auto-dismiss behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Oct 17, 2024
1 parent 2dec93b commit 38cafbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions new-log-viewer/src/components/Popups/PopupMessageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ const PopupMessageBox = ({message}: PopupMessageProps) => {
if (DO_NOT_TIMEOUT_VALUE !== timeoutMillis) {
const totalIntervals = timeoutMillis / AUTO_DISMISS_PERCENT_UPDATE_INTERVAL_MILLIS;
percentRemaining = 100 - (100 * (intervalCount / totalIntervals));
if (0 >= percentRemaining) {
setTimeout(() => {
handlePopupMessageClose(id);
}, 0);
}
}

return (
Expand Down

0 comments on commit 38cafbd

Please sign in to comment.