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