Skip to content

Commit beedf76

Browse files
danilsomsikovDevtools-frontend LUCI CQ
authored andcommitted
Fix devtools-progress[no-stop-button]
Bug: 444163858 Change-Id: I4dddd44f16a8c0e8409ecab243631237322b0ad8 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6948950 Auto-Submit: Danil Somsikov <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]> Commit-Queue: Danil Somsikov <[email protected]>
1 parent 386f50e commit beedf76

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

front_end/ui/legacy/ProgressIndicator.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class ProgressIndicator extends HTMLElement implements Common.Progress.Pr
1212
readonly #contentElement: Element;
1313
#labelElement: Element;
1414
#progressElement: HTMLProgressElement;
15-
readonly #stopButton?: Element;
15+
#stopButton?: Element;
1616
#isCanceled = false;
1717
#worked = 0;
1818
#isDone = false;
@@ -25,7 +25,10 @@ export class ProgressIndicator extends HTMLElement implements Common.Progress.Pr
2525
this.#labelElement = this.#contentElement.createChild('div', 'title');
2626
this.#progressElement = this.#contentElement.createChild('progress');
2727
this.#progressElement.value = 0;
28+
}
2829

30+
connectedCallback(): void {
31+
this.classList.add('progress-indicator');
2932
// By default we show the stop button, but this can be controlled by
3033
// using the 'no-stop-button' attribute on the element.
3134
if (!this.hasAttribute('no-stop-button')) {
@@ -34,10 +37,6 @@ export class ProgressIndicator extends HTMLElement implements Common.Progress.Pr
3437
}
3538
}
3639

37-
connectedCallback(): void {
38-
this.classList.add('progress-indicator');
39-
}
40-
4140
done(): void {
4241
if (this.#isDone) {
4342
return;

0 commit comments

Comments
 (0)