Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit 0441c9a

Browse files
committed
Show color only when timer is active
1 parent da2785c commit 0441c9a

File tree

1 file changed

+5
-2
lines changed
  • force-app/main/default/lwc/timer

1 file changed

+5
-2
lines changed

force-app/main/default/lwc/timer/timer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export default class Timer extends LightningElement {
6666
}
6767

6868
get remainingPathColor() {
69-
const progressPercent = this.secondsPassed / this.timeInSeconds;
70-
return `background: ${this.getColor(progressPercent)}`;
69+
if (!this.showStartBtn) {
70+
const progressPercent = this.secondsPassed / this.timeInSeconds;
71+
return `background: ${this.getColor(progressPercent)}`;
72+
}
73+
return "";
7174
}
7275
}

0 commit comments

Comments
 (0)