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

View File

@ -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();
}); });
}; };

View File

@ -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();

View File

@ -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();