Don't do dirty check anymore

It won't update attributes while moving in timeline. The editing check
is enough.
pull/5181/head
Oliver Günther 8 years ago
parent 1ec2383749
commit ba599d878c
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 12
      frontend/app/components/wp-fast-table/handlers/state/rows-transformer.ts

@ -46,20 +46,8 @@ export class RowsTransformer {
* Will skip rendering when dirty or fresh. Does not check for table changes.
*/
private refreshWorkPackage(table, row) {
// If the work package is dirty, we're working on it
if (row.object.dirty) {
debugLog("Skipping row " + row.workPackageId + " since its dirty");
return;
}
// Get the row for the WP if refreshing existing
let oldRow = row.element || locateRow(row.workPackageId);
if (oldRow.dataset['lockVersion'] === row.object.lockVersion.toString()) {
debugLog("Skipping row " + row.workPackageId + " since its fresh");
return;
}
table.refreshRow(row);
}
}

Loading…
Cancel
Save