Skip to content

Commit

Permalink
Check if warning should be displayed on connect
Browse files Browse the repository at this point in the history
This is to display the warning when the user changes the calculation
mode and then reloads the page, or when the user changes the calculation
mode, navigates away and then goes back to the settings page.
  • Loading branch information
cbliard committed Sep 12, 2024
1 parent a88260c commit 348fea6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export default class ProgressTrackingController extends Controller {
declare readonly warningTextTarget:HTMLElement;
declare readonly warningToastTarget:HTMLElement;

connect() {
this.displayWarning();
}

displayWarning() {
const warningMessageHtml = this.getWarningMessageHtml();
if (warningMessageHtml) {
Expand Down

0 comments on commit 348fea6

Please sign in to comment.