mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
Clear data changes for tables and plots (#2475)
This commit is contained in:
committed by
Andrew Henry
parent
003c3e9fbe
commit
8f0081acc8
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="c-indicator c-indicator--clickable icon-clear-data s-status-caution">
|
<div class="c-indicator c-indicator--clickable icon-clear-data s-status-caution">
|
||||||
<span class="label c-indicator__label">
|
<span class="label c-indicator__label">
|
||||||
<button @click="globalClearEmit">Clear All Data</button>
|
<button @click="globalClearEmit">Clear Data</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -269,7 +269,7 @@ define([
|
|||||||
|
|
||||||
PlotController.prototype.clearData = function () {
|
PlotController.prototype.clearData = function () {
|
||||||
this.config.series.forEach(function (series) {
|
this.config.series.forEach(function (series) {
|
||||||
series.refresh();
|
series.reset();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -187,6 +187,11 @@ define([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearData() {
|
||||||
|
this.filteredRows.clear();
|
||||||
|
this.boundedRows.clear();
|
||||||
|
}
|
||||||
|
|
||||||
getColumnMapForObject(objectKeyString) {
|
getColumnMapForObject(objectKeyString) {
|
||||||
let columns = this.configuration.getColumns();
|
let columns = this.configuration.getColumns();
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ define([
|
|||||||
component.isEditing = editMode;
|
component.isEditing = editMode;
|
||||||
},
|
},
|
||||||
onClearData() {
|
onClearData() {
|
||||||
table.refreshData();
|
table.clearData();
|
||||||
},
|
},
|
||||||
destroy: function (element) {
|
destroy: function (element) {
|
||||||
component.$destroy();
|
component.$destroy();
|
||||||
|
Reference in New Issue
Block a user