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

Commit

Permalink
Show color only when timer is active
Browse files Browse the repository at this point in the history
  • Loading branch information
adityanaag3 committed Aug 10, 2021
1 parent da2785c commit 0441c9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions force-app/main/default/lwc/timer/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export default class Timer extends LightningElement {
}

get remainingPathColor() {
const progressPercent = this.secondsPassed / this.timeInSeconds;
return `background: ${this.getColor(progressPercent)}`;
if (!this.showStartBtn) {
const progressPercent = this.secondsPassed / this.timeInSeconds;
return `background: ${this.getColor(progressPercent)}`;
}
return "";
}
}

0 comments on commit 0441c9a

Please sign in to comment.