mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Visual Console Refactor: removed unused code
Former-commit-id: a1c38a8b8b3f55b2959f94aa5c1404a63c5fff67
This commit is contained in:
parent
d94ed7e4f3
commit
6e15117e11
@ -103,16 +103,6 @@ export default class Percentile extends Item<PercentileProps> {
|
|||||||
public createDomElement(): HTMLElement {
|
public createDomElement(): HTMLElement {
|
||||||
// Progress.
|
// Progress.
|
||||||
const progress = this.getProgress();
|
const progress = this.getProgress();
|
||||||
// Display value.
|
|
||||||
let displayValue: string;
|
|
||||||
if (this.props.valueType === "value") {
|
|
||||||
displayValue = this.props.unit
|
|
||||||
? `${this.props.value} ${this.props.unit}`
|
|
||||||
: `${this.props.value}`;
|
|
||||||
} else {
|
|
||||||
displayValue = `${progress}%`;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Main element.
|
// Main element.
|
||||||
const element = document.createElement("div");
|
const element = document.createElement("div");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user