mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Minor text fixes
This commit is contained in:
parent
a524a92003
commit
263a54960d
@ -195,7 +195,7 @@ beestat.component.card.metrics.prototype.get_subtitle_ = function() {
|
||||
|
||||
// How much data was used to generate this.
|
||||
const duration_weeks = Math.round(thermostat.profile.metadata.duration / 7);
|
||||
duration_text += ' from the past ';
|
||||
duration_text += ' from the past';
|
||||
if (duration_weeks === 0) {
|
||||
duration_text += ' few days';
|
||||
} else if (duration_weeks === 1) {
|
||||
@ -203,7 +203,7 @@ beestat.component.card.metrics.prototype.get_subtitle_ = function() {
|
||||
} else if (duration_weeks >= 52) {
|
||||
duration_text += ' year';
|
||||
} else {
|
||||
duration_text += duration_weeks + ' weeks';
|
||||
duration_text += ' ' + duration_weeks + ' weeks';
|
||||
}
|
||||
duration_text += ' of data';
|
||||
|
||||
|
@ -253,7 +253,7 @@ beestat.component.card.temperature_profiles.prototype.get_subtitle_ = function()
|
||||
} else if (duration_weeks >= 52) {
|
||||
duration_text += ' year';
|
||||
} else {
|
||||
duration_text += duration_weeks + ' weeks';
|
||||
duration_text += ' ' + duration_weeks + ' weeks';
|
||||
}
|
||||
duration_text += ' of data';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user