Clear data changes for tables and plots (#2475)

This commit is contained in:
Deep Tailor 2019-09-06 17:17:24 -07:00 committed by Andrew Henry
parent 003c3e9fbe
commit 8f0081acc8
4 changed files with 8 additions and 3 deletions

View File

@ -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>

View File

@ -269,7 +269,7 @@ define([
PlotController.prototype.clearData = function () {
this.config.series.forEach(function (series) {
series.refresh();
series.reset();
});
};

View File

@ -187,6 +187,11 @@ define([
}
}
clearData() {
this.filteredRows.clear();
this.boundedRows.clear();
}
getColumnMapForObject(objectKeyString) {
let columns = this.configuration.getColumns();

View File

@ -75,7 +75,7 @@ define([
component.isEditing = editMode;
},
onClearData() {
table.refreshData();
table.clearData();
},
destroy: function (element) {
component.$destroy();