mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
linting fixes
This commit is contained in:
@ -113,7 +113,7 @@ export default {
|
|||||||
|
|
||||||
this.requestHistory();
|
this.requestHistory();
|
||||||
|
|
||||||
if(this.hasUnits) {
|
if (this.hasUnits) {
|
||||||
this.setUnit();
|
this.setUnit();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -128,7 +128,7 @@ export default {
|
|||||||
let newTimestamp = this.getParsedTimestamp(datum),
|
let newTimestamp = this.getParsedTimestamp(datum),
|
||||||
limit;
|
limit;
|
||||||
|
|
||||||
if(this.shouldUpdate(newTimestamp)) {
|
if (this.shouldUpdate(newTimestamp)) {
|
||||||
this.timestamp = newTimestamp;
|
this.timestamp = newTimestamp;
|
||||||
this.value = this.formats[this.valueKey].format(datum);
|
this.value = this.formats[this.valueKey].format(datum);
|
||||||
limit = this.limitEvaluator.evaluate(datum, this.valueMetadata);
|
limit = this.limitEvaluator.evaluate(datum, this.valueMetadata);
|
||||||
@ -163,7 +163,7 @@ export default {
|
|||||||
},
|
},
|
||||||
updateBounds(bounds, isTick) {
|
updateBounds(bounds, isTick) {
|
||||||
this.bounds = bounds;
|
this.bounds = bounds;
|
||||||
if(!isTick) {
|
if (!isTick) {
|
||||||
this.resetValues();
|
this.resetValues();
|
||||||
this.requestHistory();
|
this.requestHistory();
|
||||||
}
|
}
|
||||||
@ -184,17 +184,17 @@ export default {
|
|||||||
this.valueClass = '';
|
this.valueClass = '';
|
||||||
},
|
},
|
||||||
getParsedTimestamp(timestamp) {
|
getParsedTimestamp(timestamp) {
|
||||||
if(this.timeSystemFormat()) {
|
if (this.timeSystemFormat()) {
|
||||||
return this.formats[this.timestampKey].parse(timestamp);
|
return this.formats[this.timestampKey].parse(timestamp);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getFormattedTimestamp(timestamp) {
|
getFormattedTimestamp(timestamp) {
|
||||||
if(this.timeSystemFormat()) {
|
if (this.timeSystemFormat()) {
|
||||||
return this.formats[this.timestampKey].format(timestamp);
|
return this.formats[this.timestampKey].format(timestamp);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
timeSystemFormat() {
|
timeSystemFormat() {
|
||||||
if(this.formats[this.timestampKey]) {
|
if (this.formats[this.timestampKey]) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
console.warn(`No formatter for ${this.timestampKey} time system for ${this.domainObject.name}.`);
|
console.warn(`No formatter for ${this.timestampKey} time system for ${this.domainObject.name}.`);
|
||||||
|
@ -135,15 +135,18 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
showLabel() {
|
showLabel() {
|
||||||
let displayMode = this.item.displayMode;
|
let displayMode = this.item.displayMode;
|
||||||
|
|
||||||
return displayMode === 'all' || displayMode === 'label';
|
return displayMode === 'all' || displayMode === 'label';
|
||||||
},
|
},
|
||||||
showValue() {
|
showValue() {
|
||||||
let displayMode = this.item.displayMode;
|
let displayMode = this.item.displayMode;
|
||||||
|
|
||||||
return displayMode === 'all' || displayMode === 'value';
|
return displayMode === 'all' || displayMode === 'value';
|
||||||
},
|
},
|
||||||
unit() {
|
unit() {
|
||||||
let value = this.item.value,
|
let value = this.item.value;
|
||||||
unit = this.metadata.value(value).unit;
|
let unit = this.metadata.value(value).unit;
|
||||||
|
|
||||||
return unit;
|
return unit;
|
||||||
},
|
},
|
||||||
styleObject() {
|
styleObject() {
|
||||||
|
Reference in New Issue
Block a user