ywana-core8 0.0.782 → 0.0.783

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2366,7 +2366,6 @@ var StringCellEditor = function StringCellEditor(_ref9) {
2366
2366
  var SortIcon = function SortIcon(props) {
2367
2367
  var sortDir = props.sortDir,
2368
2368
  onChange = props.onChange;
2369
- console.log("sortDir", sortDir);
2370
2369
  var icon = sortDir ? sortDir > 0 ? "arrow_upward" : "arrow_downward" : "swap_vert";
2371
2370
  return /*#__PURE__*/React.createElement(Icon, {
2372
2371
  icon: icon,
@@ -11172,7 +11171,6 @@ var TaskProgress = function TaskProgress(props) {
11172
11171
  var TaskMonitor = function TaskMonitor(props) {
11173
11172
  var remove = function remove(task) {
11174
11173
  try {
11175
- console.log("remove", task);
11176
11174
  return Promise.resolve(context.removeTask(task)).then(function () {
11177
11175
  refresh();
11178
11176
  });
@@ -11215,15 +11213,6 @@ var TaskMonitor = function TaskMonitor(props) {
11215
11213
  columns: [{
11216
11214
  id: "state",
11217
11215
  label: "Estado"
11218
- }, {
11219
- id: "description",
11220
- label: "Descripcion"
11221
- }, {
11222
- id: "progress",
11223
- label: "%"
11224
- }, {
11225
- id: "percentage",
11226
- label: ""
11227
11216
  }, {
11228
11217
  id: "init",
11229
11218
  label: "Inicio",
@@ -11235,16 +11224,26 @@ var TaskMonitor = function TaskMonitor(props) {
11235
11224
  type: TYPES.STRING,
11236
11225
  format: FORMATS$1.DATE
11237
11226
  }, {
11238
- id: "resourceID",
11239
- label: "Recurso"
11227
+ id: "description",
11228
+ label: "Descripcion"
11240
11229
  }, {
11241
- id: "owner",
11242
- label: "Propietario"
11230
+ id: "progress",
11231
+ label: "%"
11243
11232
  }, {
11233
+ id: "percentage",
11234
+ label: ""
11235
+ }, // { id: "resourceID", label: "Recurso" },
11236
+ // { id: "owner", label: "Propietario" },
11237
+ {
11244
11238
  id: "actions",
11245
11239
  label: ""
11246
11240
  }],
11247
- rows: tasks.map(function (task) {
11241
+ rows: tasks // sort by init date from recent to old
11242
+ .sort(function (a, b) {
11243
+ if (a.init > b.init) return -1;
11244
+ if (a.init < b.init) return 1;
11245
+ return 0;
11246
+ }).map(function (task) {
11248
11247
  return {
11249
11248
  id: task.id,
11250
11249
  state: task.state,