Skip to content

Commit

Permalink
🔨 (slope) update fail message
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Dec 3, 2024
1 parent a19a514 commit 068a503
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,13 +777,14 @@ export class SlopeChart
@computed get failMessage(): string {
const message = getDefaultFailMessage(this.manager)
if (message) return message
else if (this.startTime === this.endTime) return "Single date selected"
else if (this.startTime === this.endTime)
return "Two time points needed for comparison"
return ""
}

@computed get helpMessage(): string | undefined {
if (this.failMessage === "Single date selected")
return "Please select two dates to display data."
if (this.failMessage === "Two time points needed for compariso")
return "Click or drag the timeline to select two different points in time"
return undefined
}

Expand Down

0 comments on commit 068a503

Please sign in to comment.